🐛 fix(__main__.py): rename serve command to run command for better semantics and clarity
🔧 chore(test_cli.py): update test to use the new run command instead of serve command ✨ feat(test_cli.py): add test for creating a superuser with the superuser command
This commit is contained in:
parent
ecf54acb7c
commit
137954de6b
2 changed files with 17 additions and 2 deletions
|
|
@ -23,8 +23,14 @@ def test_components_path(runner, client, default_settings):
|
|||
|
||||
result = runner.invoke(
|
||||
app,
|
||||
["serve", "--components-path", str(temp_dir), *default_settings],
|
||||
["run", "--components-path", str(temp_dir), *default_settings],
|
||||
)
|
||||
assert result.exit_code == 0, result.stdout
|
||||
settings_manager = utils.get_settings_manager()
|
||||
assert str(temp_dir) in settings_manager.settings.COMPONENTS_PATH
|
||||
|
||||
|
||||
def test_superuser(runner, client, session):
|
||||
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