Skip to content

Commit 1ce2565

Browse files
committed
app_account -> facets
1 parent 5921c2b commit 1ce2565

File tree

3 files changed

+1
-28
lines changed

3 files changed

+1
-28
lines changed

python/example-pytest-selfie/tests/app_account_test.py renamed to python/example-pytest-selfie/tests/facets_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ def test_homepage_v2(client):
4242
╔═ [status] ═╗
4343
200 OK""")
4444

45-
4645
def test_login_flow(client):
4746
web_selfie(client.get("/")).to_match_disk("1. not logged in").facet("md").to_be(
4847
"Please login"

python/example-pytest-selfie/tests/app_account_test.ss renamed to python/example-pytest-selfie/tests/facets_test.ss

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -46,32 +46,6 @@ Check your email for your login link.
4646
Welcome back [email protected]
4747
╔═ test_login_flow/3. log in works with cookies[status] ═╗
4848
200 OK
49-
╔═ test_login_flow/3. log in works with those cookies ═╗
50-
<html>
51-
<body>
52-
<h1>
53-
Welcome back [email protected]
54-
</h1>
55-
</body>
56-
</html>
57-
58-
╔═ test_login_flow/3. log in works with those cookies[md] ═╗
59-
Welcome back [email protected]
60-
╔═ test_login_flow/3. log in works with those cookies[status] ═╗
61-
200 OK
62-
╔═ test_login_flow/4. log in blocked without cookies ═╗
63-
<html>
64-
<body>
65-
<h1>
66-
Welcome back [email protected]
67-
</h1>
68-
</body>
69-
</html>
70-
71-
╔═ test_login_flow/4. log in blocked without cookies[md] ═╗
72-
Welcome back [email protected]
73-
╔═ test_login_flow/4. log in blocked without cookies[status] ═╗
74-
200 OK
7549
╔═ test_login_flow/4. log in fails with fake cookies ═╗
7650
<!DOCTYPE html>
7751
<html lang="en">

selfie.dev/src/pages/py/facets.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ [email protected]|JclThw==;Path=/""")
243243
status code: 401""")
244244
```
245245

246-
We just wrote a high-level specification of a realistic login flow, and it only took 24 lines of python code — most of which were generated for us, and could be regenerated on a whim if we want to change our copywriting. The [corresponding disk snapshot](https://github.com/diffplug/selfie/blob/main/python/example-pytest-selfie/tests/app_account_test.ss) gives us an exhaustive specification and description of the server's behavior.
246+
We just wrote a high-level specification of a realistic login flow, and it only took 24 lines of python code — most of which were generated for us, and could be regenerated on a whim if we want to change our copywriting. The [corresponding disk snapshot](https://github.com/diffplug/selfie/blob/main/python/example-pytest-selfie/tests/facets_test.ss) gives us an exhaustive specification and description of the server's behavior.
247247

248248
Didn't think that adopting a bugfixed version of your internationalization lib would cause any changes to your website whatsever? Oops. Don't wade through failed assertions, get a diff in every failure. If you want, regenerate all the snapshots to get a full view of the problem across the whole codebase in your git client.
249249

0 commit comments

Comments
 (0)