Fix test_superuser assertion
This commit is contained in:
parent
9e0d115161
commit
094a80b50a
1 changed files with 4 additions and 2 deletions
|
|
@ -1,8 +1,9 @@
|
|||
from pathlib import Path
|
||||
from tempfile import tempdir
|
||||
from langflow.__main__ import app
|
||||
|
||||
import pytest
|
||||
|
||||
from langflow.__main__ import app
|
||||
from langflow.services import deps
|
||||
|
||||
|
||||
|
|
@ -33,4 +34,5 @@ def test_components_path(runner, client, default_settings):
|
|||
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
|
||||
assert "Superuser creation failed." not in result.output, result.output
|
||||
assert "Superuser created successfully." in result.output, result.output
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue