diff --git a/requirements.txt b/requirements.txt index 4faf5d12..c0c4187c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,7 +7,7 @@ h11==0.8.1 httptools==0.1.1 jinja2==2.11.2 MarkupSafe==1.1.1 -robotframework==3.1.2 +robotframework==3.2.1 SQLAlchemy==1.3.16 uvicorn==0.11.5 uvloop==0.14.0 diff --git a/rfhub2/cli/keywords_importer.py b/rfhub2/cli/keywords_importer.py index da7f10be..c192c572 100644 --- a/rfhub2/cli/keywords_importer.py +++ b/rfhub2/cli/keywords_importer.py @@ -457,7 +457,7 @@ def _collection_path_and_name_match( def _library_or_resource_changed( new_collection: CollectionUpdateWithKeywords, existing_collection: Collection ) -> bool: - if new_collection.collection.type == "library": + if new_collection.collection.type.lower() == "library": return new_collection.collection.version != existing_collection.version else: return ( diff --git a/rfhub2/version.py b/rfhub2/version.py index d2687b77..7918a438 100644 --- a/rfhub2/version.py +++ b/rfhub2/version.py @@ -1 +1 @@ -version = "0.18" +version = "0.19" diff --git a/tests/unit/cli/keywords_importer.py b/tests/unit/cli/keywords_importer.py index 16db6785..5e16058e 100644 --- a/tests/unit/cli/keywords_importer.py +++ b/tests/unit/cli/keywords_importer.py @@ -15,7 +15,7 @@ "doc": "Documentation for library ``Test Libdoc File``.", "doc_format": "ROBOT", "name": "Test Libdoc File", - "scope": "global", + "scope": "GLOBAL", "type": "library", "version": "3.2.0", "keywords": [{"name": "Someone Shall Pass", "args": '["who"]', "doc": ""}], @@ -68,8 +68,8 @@ doc_format="ROBOT", name="SingleClassLib", path=str(FIXTURE_PATH / "SingleClassLib" / "SingleClassLib.py"), - scope="test case", - type="library", + scope="TEST", + type="LIBRARY", version="1.2.3", ) @@ -113,8 +113,8 @@ doc_format="ROBOT", name="Test Libdoc File", path=str(FIXTURE_PATH / "test_libdoc_file.xml"), - scope="global", - type="library", + scope="GLOBAL", + type="LIBRARY", version="3.2.0", ) EXPECTED_COLLECTION_KEYWORDS_2_1 = KeywordUpdate( @@ -440,9 +440,9 @@ def test_get_all_collections_should_return_all_collections(self): "id": 1, "name": "SingleClassLib", "keywords": [], - "type": "library", + "type": "LIBRARY", "doc_format": "ROBOT", - "scope": "test case", + "scope": "TEST", "version": "1.2.3", "path": str( FIXTURE_PATH / "SingleClassLib" / "SingleClassLib.py"