File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ async def test_that_a_customer_can_be_read(
65
65
assert dateutil .parser .parse (data ["creation_utc" ]) == customer .creation_utc
66
66
67
67
68
- async def test_that_customers_can_be_listed (
68
+ async def test_that_all_customers_including_guests_can_be_listed (
69
69
client : TestClient ,
70
70
container : Container ,
71
71
) -> None :
@@ -89,7 +89,7 @@ async def test_that_customers_can_be_listed(
89
89
90
90
customers = client .get ("/customers" ).raise_for_status ().json ()
91
91
92
- assert len (customers ) == 2
92
+ assert len (customers ) == 3
93
93
assert any (
94
94
first_name == customer ["name" ] and first_extra == customer ["extra" ]
95
95
for customer in customers
@@ -98,6 +98,7 @@ async def test_that_customers_can_be_listed(
98
98
second_name == customer ["name" ] and second_extra == customer ["extra" ]
99
99
for customer in customers
100
100
)
101
+ assert any ("<guest>" == customer ["name" ] for customer in customers )
101
102
102
103
103
104
async def test_that_a_customer_can_be_updated_with_a_new_name (
You can’t perform that action at this time.
0 commit comments