diff --git a/dash/tests.py b/dash/tests.py index ae52883..2c479cd 100644 --- a/dash/tests.py +++ b/dash/tests.py @@ -198,7 +198,6 @@ class CreateInstance(TestCase): register_util(t=self, username="createinstance_user") create_configurations(t=self) - def test_sanitize_vm_name(self): self.assertEqual(sanitize_vm_name(vm_name="LOWERname"), "lowername") @@ -208,7 +207,6 @@ class CreateInstance(TestCase): with self.assertRaises(VmException): sanitize_vm_name(vm_name="122342$#34234") - @override_settings( HOSTEA=infra_custom_config(test_name="test_create_instance_util") ) diff --git a/integration/forgejo.py b/integration/forgejo.py index 5912b8e..7ff0486 100755 --- a/integration/forgejo.py +++ b/integration/forgejo.py @@ -196,7 +196,11 @@ class Forgejo: resp = self.c.post(url, data=data, allow_redirects=False) print(f"Created repository {name}") - if resp.status_code != 302 and resp.status_code != 200: + if ( + resp.status_code != 302 + and resp.status_code != 200 + and resp.status_code != 303 + ): raise Exception( f"Error while creating repository: {name} {resp.status_code}" )