diff options
author | luz paz <luzpaz@users.noreply.github.com> | 2021-09-07 18:33:54 +0300 |
---|---|---|
committer | luz paz <luzpaz@users.noreply.github.com> | 2021-09-07 18:33:54 +0300 |
commit | d68f375e386049878de69eb0b33aacc3f40cb344 (patch) | |
tree | 7c31e3a32ac8b9d2c7328c6de5f300eb4eb15182 /tests | |
parent | 7eeae4db87f3f6e860c2bc4faab79af50c59e484 (diff) |
Fix various typos
Found via `codespell -q 3 -S *.po,*.pot -L childs,initialy,lod,ned,te,slicable,sur,tutoriels,wont`
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Machines/Models/TestDiscoveredPrintersModel.py | 2 | ||||
-rw-r--r-- | tests/PrinterOutput/TestNetworkedPrinterOutputDevice.py | 16 | ||||
-rw-r--r-- | tests/Settings/TestSettingInheritanceManager.py | 4 | ||||
-rw-r--r-- | tests/Settings/TestSettingVisibilityPresets.py | 4 | ||||
-rw-r--r-- | tests/TestCuraSceneController.py | 2 | ||||
-rwxr-xr-x | tests/TestMachineAction.py | 2 |
6 files changed, 15 insertions, 15 deletions
diff --git a/tests/Machines/Models/TestDiscoveredPrintersModel.py b/tests/Machines/Models/TestDiscoveredPrintersModel.py index 1ec777ff88..3407ae575e 100644 --- a/tests/Machines/Models/TestDiscoveredPrintersModel.py +++ b/tests/Machines/Models/TestDiscoveredPrintersModel.py @@ -14,7 +14,7 @@ def discovered_printer() -> DiscoveredPrinter: return DiscoveredPrinter("127.0.0.1", "zomg", "yay", None, "bleep", MagicMock()) -@pytest.mark.skip # TODO: This has some unknown dependency on the applicaiton / registry, which is hard to patch out. (which doesn't mean we shouldn't fix it!) +@pytest.mark.skip # TODO: This has some unknown dependency on the application / registry, which is hard to patch out. (which doesn't mean we shouldn't fix it!) def test_discoveredPrinters(discovered_printer_model): mocked_device = MagicMock() cluster_size = PropertyMock(return_value = 1) diff --git a/tests/PrinterOutput/TestNetworkedPrinterOutputDevice.py b/tests/PrinterOutput/TestNetworkedPrinterOutputDevice.py index 107ed77b51..84ad7f0473 100644 --- a/tests/PrinterOutput/TestNetworkedPrinterOutputDevice.py +++ b/tests/PrinterOutput/TestNetworkedPrinterOutputDevice.py @@ -38,7 +38,7 @@ def test_post(): mocked_network_manager = MagicMock() output_device._manager = mocked_network_manager - # Create a fake reply (we cant use a QReply, since those are abstract C++) + # Create a fake reply (we can't use a QReply, since those are abstract C++) reply = MagicMock() reply.operation = MagicMock(return_value=QNetworkAccessManager.PostOperation) reply.url = MagicMock(return_value=QUrl("127.0.0.1")) @@ -47,7 +47,7 @@ def test_post(): mocked_callback_handler = MagicMock() output_device.post("whatever", "omgzomg", on_finished = mocked_callback_handler.onFinished) - # So we now fake that the request was sucesful. + # So we now fake that the request was successful. output_device._handleOnFinished(reply) # We expect to get a callback regarding this. @@ -60,7 +60,7 @@ def test_get(): mocked_network_manager = MagicMock() output_device._manager = mocked_network_manager - # Create a fake reply (we cant use a QReply, since those are abstract C++) + # Create a fake reply (we can't use a QReply, since those are abstract C++) reply = MagicMock() reply.operation = MagicMock(return_value=QNetworkAccessManager.PostOperation) reply.url = MagicMock(return_value=QUrl("127.0.0.1")) @@ -69,7 +69,7 @@ def test_get(): mocked_callback_handler = MagicMock() output_device.get("whatever", on_finished=mocked_callback_handler.onFinished) - # So we now fake that the request was sucesful. + # So we now fake that the request was successful. output_device._handleOnFinished(reply) # We expect to get a callback regarding this. @@ -82,7 +82,7 @@ def test_delete(): mocked_network_manager = MagicMock() output_device._manager = mocked_network_manager - # Create a fake reply (we cant use a QReply, since those are abstract C++) + # Create a fake reply (we can't use a QReply, since those are abstract C++) reply = MagicMock() reply.operation = MagicMock(return_value=QNetworkAccessManager.PostOperation) reply.url = MagicMock(return_value=QUrl("127.0.0.1")) @@ -91,7 +91,7 @@ def test_delete(): mocked_callback_handler = MagicMock() output_device.delete("whatever", on_finished=mocked_callback_handler.onFinished) - # So we now fake that the request was sucesful. + # So we now fake that the request was successful. output_device._handleOnFinished(reply) # We expect to get a callback regarding this. @@ -104,7 +104,7 @@ def test_put(): mocked_network_manager = MagicMock() output_device._manager = mocked_network_manager - # Create a fake reply (we cant use a QReply, since those are abstract C++) + # Create a fake reply (we can't use a QReply, since those are abstract C++) reply = MagicMock() reply.operation = MagicMock(return_value=QNetworkAccessManager.PostOperation) reply.url = MagicMock(return_value=QUrl("127.0.0.1")) @@ -113,7 +113,7 @@ def test_put(): mocked_callback_handler = MagicMock() output_device.put("whatever", "omgzomg", on_finished = mocked_callback_handler.onFinished) - # So we now fake that the request was sucesful. + # So we now fake that the request was successful. output_device._handleOnFinished(reply) # We expect to get a callback regarding this. diff --git a/tests/Settings/TestSettingInheritanceManager.py b/tests/Settings/TestSettingInheritanceManager.py index 3589d8b91f..8613095a9a 100644 --- a/tests/Settings/TestSettingInheritanceManager.py +++ b/tests/Settings/TestSettingInheritanceManager.py @@ -84,12 +84,12 @@ def test_getOverridesForExtruderNoGlobalStack(setting_inheritance_manager): def test_settingIsOverwritingInheritanceNoUserState(setting_inheritance_manager, mocked_stack): - # Setting 1 doesn't have a user state, so it cant have an override + # Setting 1 doesn't have a user state, so it can't have an override assert not setting_inheritance_manager._settingIsOverwritingInheritance("setting_1", mocked_stack) def test_settingIsOverwritingInheritanceNotEnabled(setting_inheritance_manager, mocked_stack): - # Setting 2 doesn't have a enabled, so it cant have an override + # Setting 2 doesn't have a enabled, so it can't have an override assert not setting_inheritance_manager._settingIsOverwritingInheritance("setting_2", mocked_stack) diff --git a/tests/Settings/TestSettingVisibilityPresets.py b/tests/Settings/TestSettingVisibilityPresets.py index 017bb6077a..6b268bca1d 100644 --- a/tests/Settings/TestSettingVisibilityPresets.py +++ b/tests/Settings/TestSettingVisibilityPresets.py @@ -15,7 +15,7 @@ Resources.addStorageType(CuraApplication.ResourceTypes.SettingVisibilityPreset, def test_createVisibilityPresetFromLocalFile(): - # Simple creation test. This is seperated from the visibilityFromPrevious, since we can't check for the contents + # Simple creation test. This is separated from the visibilityFromPrevious, since we can't check for the contents # of the other profiles, since they might change over time. visibility_preset = SettingVisibilityPreset() @@ -49,7 +49,7 @@ def test_setActivePreset(): with patch("cura.CuraApplication.CuraApplication.getInstance"): visibility_model = SettingVisibilityPresetsModel(preferences) visibility_model.activePresetChanged = MagicMock() - # Ensure that we start off with basic (since we didn't change anyting just yet!) + # Ensure that we start off with basic (since we didn't change anything just yet!) assert visibility_model.activePreset == "basic" # Everything should be the same. diff --git a/tests/TestCuraSceneController.py b/tests/TestCuraSceneController.py index ffffa8ac2a..634ce89d86 100644 --- a/tests/TestCuraSceneController.py +++ b/tests/TestCuraSceneController.py @@ -75,5 +75,5 @@ def test_updateMaxBuildPlate(objects_model, multi_build_plate_model): # And check what happens if we move down again! controller._calcMaxBuildPlate = MagicMock(return_value=2) controller.updateMaxBuildPlate(SceneNode()) - assert controller._active_build_plate == 0 # We don't have any items anywere, so default to 0 + assert controller._active_build_plate == 0 # We don't have any items anywhere, so default to 0 diff --git a/tests/TestMachineAction.py b/tests/TestMachineAction.py index 7dbc6b1270..2bc9659e42 100755 --- a/tests/TestMachineAction.py +++ b/tests/TestMachineAction.py @@ -38,7 +38,7 @@ def test_addDefaultMachineActions(machine_action_manager, global_stack): machine_action_manager.addMachineAction(action) # Only the actions in the definition that were registered first will be added to the machine. - # For the sake of this test, all the actions were previouly added. + # For the sake of this test, all the actions were previously added. machine_action_manager.addDefaultMachineActions(global_stack) definition_id = global_stack.getDefinition().getId() |