parent
db2c12183c
commit
3c6ec0cf9e
13 changed files with 94 additions and 63 deletions
|
|
@ -12,7 +12,7 @@ def default_settings():
|
|||
]
|
||||
|
||||
|
||||
def test_components_path(runner, client, default_settings, tmp_path):
|
||||
def test_components_path(runner, default_settings, tmp_path):
|
||||
# create a "components" folder
|
||||
temp_dir = tmp_path / "components"
|
||||
|
||||
|
|
@ -25,7 +25,8 @@ def test_components_path(runner, client, default_settings, tmp_path):
|
|||
assert str(temp_dir) in settings_service.settings.components_path
|
||||
|
||||
|
||||
def test_superuser(runner, client, session):
|
||||
@pytest.mark.usefixtures("session")
|
||||
def test_superuser(runner):
|
||||
result = runner.invoke(app, ["superuser"], input="admin\nadmin\n")
|
||||
assert result.exit_code == 0, result.stdout
|
||||
assert "Superuser created successfully." in result.stdout
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue