This is an automated email from the ASF dual-hosted git repository. hugh pushed a commit to branch mv-test-app in repository https://gitbox.apache.org/repos/asf/superset.git
commit 2d666c45fb8c01b7f69fe482a85463d6a80102a6 Author: hughhhh <[email protected]> AuthorDate: Thu Sep 8 12:56:25 2022 -0700 move this test to unit --- .../test_app.py => unit_tests/app_test.py} | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/tests/integration_tests/test_app.py b/tests/unit_tests/app_test.py similarity index 73% rename from tests/integration_tests/test_app.py rename to tests/unit_tests/app_test.py index fb7b47b67c..57590b263a 100644 --- a/tests/integration_tests/test_app.py +++ b/tests/unit_tests/app_test.py @@ -14,23 +14,12 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. -from typing import TYPE_CHECKING +from typing import Any -from superset.app import create_app -if TYPE_CHECKING: - from typing import Any - - from flask.testing import FlaskClient - -app = create_app() - - -def login( - client: "FlaskClient[Any]", username: str = "admin", password: str = "general" -): +def test_login(client: Any): resp = client.post( "/login/", - data=dict(username=username, password=password), + data=dict(username="admin", password="general"), ).get_data(as_text=True) assert "User confirmation needed" not in resp
