Fix test_superuser assertion

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-12-11 14:46:37 -03:00
commit 094a80b50a

View file

@ -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