Skip to content

Commit

Permalink
Allow skipping tests with environment variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed Jul 20, 2022
1 parent 5aa1cf4 commit 7f30160
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/parser_tests/test_parserTests.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from collections import defaultdict
from datetime import datetime
from os import environ
from pathlib import Path

import mwparserfromhell
Expand All @@ -14,7 +15,7 @@
WHITELIST = {line.strip() for line in f}

# Whether to only run the tests above or to run them all and skip failing tests.
ONLY_RUN_WHITELIST = False
ONLY_RUN_WHITELIST = environ.get("ONLY_RUN_WHITELIST") is not None

# Some tests have a standard HTML output, while others differ based on the
# parser. Prefer the standard output, then the PHP parser's.
Expand Down

0 comments on commit 7f30160

Please sign in to comment.