We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 568c830 commit 211cde3Copy full SHA for 211cde3
.github/workflows/run-tests-on-pr.yml
tests/test_user.py
@@ -7,17 +7,17 @@
7
p = Practically()
8
p.create_session_from_env("USERNAME", "PASSWORD")
9
10
+def test_if_session_is_valid():
11
+ assert p.is_session_expired_or_invalid() is False
12
-def test_if_user_can_login():
13
+def test_if_user_info_can_be_fetched():
14
user = p.get_user()
- assert len(user.first_name) > 1
15
+ assert user.first_name is not None
16
-
-def test_should_work_if_session_is_invalid():
17
+def test_if_session_is_invalid():
18
p.session_id = "foobarbaz"
19
20
21
22
- assert user is not None
23
- assert len(user.last_name) > 1
0 commit comments