Skip to content
Snippets Groups Projects
Commit 172ace28 authored by Christian Boettcher's avatar Christian Boettcher
Browse files

test for None if invalid uuid

parent 09ccc509
No related branches found
No related tags found
No related merge requests found
Pipeline #99388 failed
......@@ -29,11 +29,14 @@ class TestSecretsBackend(TestCase):
def test_uuid_validation(self):
self.assertTrue(validate_uuid(str(uuid.uuid4())))
self.assertFalse(validate_uuid("wrong_uuid"))
self.assertFalse(validate_uuid("invalid_uuid"))
def test_no_error_on_missing_extra(self):
get_connection_with_secrets_from_entry({"name" : "some-name", "url" : "some_url", "metadata" : {}}, {}, "test-connection", 'false_oid')
def test_None_on_invalid_uuid(self):
self.assertIsNone(self.backend.get_connection("invalid_uuid"))
class TestSecretsConnection(TestCase):
def setUp(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment