Read about our upcoming Code of Conduct on this issue

Commit f4bed2c5 authored by Georges Racinet's avatar Georges Racinet 🦑
Browse files

Fixtures: new 'additional_user'

We already had a persistent normal user and the `external_user`
fixture. This one is not external.
parent 6b2a473ac4d5
......@@ -252,6 +252,18 @@ def external_user(heptapod, accepts_concurrent):
user.delete()
@pytest.fixture()
def additional_user(heptapod, accepts_concurrent):
user = None
try:
user = User.create(heptapod, unique_name('add_user'))
user.ensure_private_token()
yield user
finally:
if user is not None:
user.delete()
@pytest.fixture()
def test_project(heptapod, accepts_concurrent):
with project_fixture(heptapod, 'test_project', 'root') as proj:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment