diff --git a/openpype/plugins/publish/collect_host_name.py b/openpype/plugins/publish/collect_host_name.py index 17cb59b212..b731e3ed26 100644 --- a/openpype/plugins/publish/collect_host_name.py +++ b/openpype/plugins/publish/collect_host_name.py @@ -35,4 +35,3 @@ class CollectHostName(pyblish.api.ContextPlugin): host_name = app.host_name context.data["hostName"] = host_name - diff --git a/tests/lib/testing_wrapper.py b/tests/lib/testing_wrapper.py index b2a89edec7..0a7c9a382f 100644 --- a/tests/lib/testing_wrapper.py +++ b/tests/lib/testing_wrapper.py @@ -137,8 +137,8 @@ class TestCase: @pytest.fixture(scope="module") def last_workfile_path(self, download_test_data): - raise NotImplemented + raise NotImplementedError @pytest.fixture(scope="module") def startup_scripts(self, monkeypatch_session, download_test_data): - raise NotImplemented + raise NotImplementedError diff --git a/tests/unit/openpype/modules/sync_server/test_publish_in_maya.py b/tests/unit/openpype/modules/sync_server/test_publish_in_maya.py index 2aca0314dc..612a657c12 100644 --- a/tests/unit/openpype/modules/sync_server/test_publish_in_maya.py +++ b/tests/unit/openpype/modules/sync_server/test_publish_in_maya.py @@ -122,18 +122,17 @@ class TestPublishInMaya(TestCase): assert 5 == dbcon.find({"type": "version"}).count(), \ "Not expected no of versions" - assert 0 == \ - dbcon.find({"type": "version", "name": {"$ne": 1}}).count(), \ - "Only versions with 1 expected" + assert 0 == dbcon.find({"type": "version", + "name": {"$ne": 1}}).count(), \ + "Only versions with 1 expected" - assert 1 == \ - dbcon.find({"type": "subset", "name": "modelMain"}).count(), \ - "modelMain subset must be present" + assert 1 == dbcon.find({"type": "subset", + "name": "modelMain"}).count(), \ + "modelMain subset must be present" - assert 1 == \ - dbcon.find( - {"type": "subset", "name": "workfileTest_task"}).count(), \ - "workfileTest_task subset must be present" + assert 1 == dbcon.find({"type": "subset", + "name": "workfileTest_task"}).count(), \ + "workfileTest_task subset must be present" assert 11 == dbcon.find({"type": "representation"}).count(), \ "Not expected no of representations" @@ -202,5 +201,6 @@ class TestPublishInMaya(TestCase): "test_project_test_asset_workfileTest_task_v001.mb") ), "test_project_test_asset_workfileTest_task_v001.mb doesn't exist" + if __name__ == "__main__": test_case = TestPublishInMaya()