You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by hu...@apache.org on 2022/09/08 19:56:41 UTC
[superset] branch mv-test-app created (now 2d666c45fb)
This is an automated email from the ASF dual-hosted git repository.
hugh pushed a change to branch mv-test-app
in repository https://gitbox.apache.org/repos/asf/superset.git
at 2d666c45fb move this test to unit
This branch includes the following new commits:
new 2d666c45fb move this test to unit
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[superset] 01/01: move this test to unit
Posted by hu...@apache.org.
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 <hu...@gmail.com>
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