@@ -288,10 +288,24 @@ def test_load_trackables(self):
288
288
289
289
def test_load_logbook (self ):
290
290
with self .recorder .use_cassette ('cache_logbook' ):
291
- # limit over 100 tests pagination
292
- log_authors = list (map (lambda log : log .author , self .c .load_logbook (limit = 200 )))
293
- for expected_author in ["Dudny-1995" , "Sopdet Reviewer" , "donovanstangiano83" ]:
294
- self .assertIn (expected_author , log_authors )
291
+ # limit over 200 tests pagination
292
+ logs = [
293
+ (log .uuid , log .author , log .type )
294
+ for log in self .c .load_logbook (limit = 200 )
295
+ ]
296
+
297
+ expected_logs = [
298
+ ('9767f72f-ba69-43ee-affc-44edc0ac8516' , 'Dudny-1995' , LogType .note ),
299
+ ('a4ea42f1-7020-4503-b704-b8aa7b92d02c' , 'Sopdet Reviewer' , LogType .archive ),
300
+ ('3f3d3383-adc6-415f-a18a-2c9a96e83238' , 'donovanstangiano83' , LogType .needs_archive ),
301
+ ('51fbf641-f497-4522-9cdb-2ccd17223567' , 'tunklt' , LogType .didnt_find_it ),
302
+ ('d4b29fa7-65d5-4fbe-a2f5-aeb4d9a7ee3b' , 'ricoo' , LogType .temp_disable_listing ),
303
+ ('61607c93-3bec-4314-947f-0fd4bf8939e1' , 'showpa' , LogType .found_it ),
304
+ ('9d052a22-d615-4bdc-bf25-018e537fda0a' , 'Tomasook' , LogType .needs_maintenance )
305
+ ]
306
+
307
+ for expected_log in expected_logs :
308
+ self .assertIn (expected_log , logs )
295
309
296
310
def test_load_log_page (self ):
297
311
expected_types = {t .value for t in (LogType .found_it , LogType .didnt_find_it , LogType .note )}
0 commit comments