From 062cd0ff0176f1f9924e3ae89c0eaf01a8d6fd04 Mon Sep 17 00:00:00 2001 From: pennae Date: Thu, 14 Jul 2022 09:17:16 +0200 Subject: allow integration tests to run in parallel this doesn't do much for performance, but it does allow running the tests with a simple `cargo t`. --- tests/test_auth_account.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test_auth_account.py') diff --git a/tests/test_auth_account.py b/tests/test_auth_account.py index 68a407b..0e7e22d 100644 --- a/tests/test_auth_account.py +++ b/tests/test_auth_account.py @@ -298,7 +298,7 @@ def test_create_badinvite(client): @pytest.mark.invite def test_create_invite(client, mail_server): # all in one test because restarting the server from python would be a pain - c = client.create_account("test.account@test-auth", "", invite=os.environ['INVITE_CODE']) + c = client.create_account("test.account.invite@test-auth", "", invite=os.environ['INVITE_CODE']) c2 = None try: invite = Invite(c.props['sessionToken']) @@ -319,7 +319,7 @@ def test_create_invite(client, mail_server): assert 'url' in code code = code['url'].split('/')[-1] # code allows registration - c2 = client.create_account("test.account2@test-auth", "", invite=code) + c2 = client.create_account("test.account.invite2@test-auth", "", invite=code) (to, body) = mail_server.wait() data = json.loads(base64.urlsafe_b64decode(body.split("#/verify/", maxsplit=1)[1]).decode('utf8')) c2.post_a('/recovery_email/verify_code', { 'uid': data['uid'], 'code': data['code'] }) -- cgit v1.2.3