@@ -248,14 +248,14 @@ def test_loader_filter_tags():
248
248
loader = TestLoader ({manifest : {"metadata_path" : metadata_path }}, ["testharness" ], None )
249
249
assert len (loader .tests ["testharness" ]) == 4
250
250
251
- # Check: specifying a single `test-include` inclusion yields `/a/bar`
251
+ # Check: specifying a single `test-include` inclusion yields `/a/bar` and `/b/baz`
252
252
loader = TestLoader ({manifest : {"metadata_path" : metadata_path }}, ["testharness" ], None ,
253
- test_filters = [TagFilter ({"test-include" })])
254
- assert len (loader .tests ["testharness" ]) == 1
253
+ test_filters = [TagFilter ({"test-include" }, {} )])
254
+ assert len (loader .tests ["testharness" ]) == 2
255
255
assert loader .tests ["testharness" ][0 ].id == "/a/bar.html"
256
256
assert loader .tests ["testharness" ][0 ].tags == {"dir:a" , "test-include" }
257
257
assert loader .tests ["testharness" ][1 ].id == "/b/baz.html"
258
- assert loader .tests ["testharness" ][1 ].tags == {"dir:b" , "test-include" }
258
+ assert loader .tests ["testharness" ][1 ].tags == {"dir:b" , "test-include" , "test-exclude" }
259
259
260
260
# Check: specifying a single `test-exclude` exclusion rejects only `/b/baz`
261
261
loader = TestLoader ({manifest : {"metadata_path" : metadata_path }}, ["testharness" ], None ,
@@ -274,13 +274,11 @@ def test_loader_filter_tags():
274
274
275
275
loader = TestLoader ({manifest : {"metadata_path" : metadata_path }}, ["testharness" ], None ,
276
276
test_filters = [TagFilter ({"test-include" }, {"test-include" })])
277
- assert ( len (loader .tests ["testharness" ] == 0 ))
277
+ assert len (loader .tests ["testharness" ]) == 0
278
278
279
279
loader = TestLoader ({manifest : {"metadata_path" : metadata_path }}, ["testharness" ], None ,
280
280
test_filters = [TagFilter ({"test-include" , "test-exclude" }, {"test-include" })])
281
- assert len (loader .tests ["testharness" ]) == 1
282
- assert loader .tests ["testharness" ][0 ].id == "/b/baz.html"
283
- assert loader .tests ["testharness" ][0 ].tags == {"dir:b" , "test-include" , "test-exclude" }
281
+ assert len (loader .tests ["testharness" ]) == 0
284
282
285
283
286
284
def test_chunk_hash (manifest ):
0 commit comments