Skip to content

Test Api

Racine Index / App / Tests / Test Api

Auto-generated documentation for app.tests.test_api module.

Context

Show source in test_api.py:10

Signature

class Context:
    def __init__(self, app, client: FlaskClient, api_token: str): ...

ctx

Show source in test_api.py:26

Signature

@pytest.fixture()
def ctx(): ...

expect_status_code

Show source in test_api.py:17

Signature

def expect_status_code(r: TestResponse, code: int): ...

test_create_action

Show source in test_api.py:122

Test that actions can be created using the API.

Signature

def test_create_action(ctx: Context): ...

See also

test_create_sample

Show source in test_api.py:112

Test that samples can be created using the API.

Signature

def test_create_sample(ctx: Context): ...

See also

test_create_share

Show source in test_api.py:133

Test that shares can be created using the API.

Signature

def test_create_share(ctx: Context): ...

See also

test_create_share_with_nonexisting_sample

Show source in test_api.py:143

Test that shares cannot be created if sample does not exist.

Signature

def test_create_share_with_nonexisting_sample(ctx: Context): ...

See also

test_create_smbresource

Show source in test_api.py:153

Test that SMB resources can be created using the API.

Signature

def test_create_smbresource(ctx: Context): ...

See also

test_create_user

Show source in test_api.py:65

Signature

def test_create_user(ctx: Context): ...

See also

test_create_user_with_existing_email

Show source in test_api.py:96

Test that users cannot be created if email already exists.

Signature

def test_create_user_with_existing_email(ctx: Context): ...

See also

test_create_user_with_existing_username

Show source in test_api.py:80

Test that users cannot be created if username already exists.

Signature

def test_create_user_with_existing_username(ctx: Context): ...

See also

test_pr252

Show source in test_api.py:171

Test that obtaining a user list in "share" mode works after deleting a user.

Signature

def test_pr252(ctx: Context): ...

See also