Skip to content

Commit

Permalink
Fix broken phabricator tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kwk authored and psss committed Jan 27, 2023
1 parent cc5bdb4 commit 50a0128
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/plugins/test_phabricator.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

URL = "url = https://reviews.llvm.org/api/"
LOGINS = "login = kwk, kkleine"
TOKEN = 'token = {os.getenv(key="PHABRICATOR_TOKEN", default="No token specified")}'
TOKEN = "token = " + os.getenv(key="PHABRICATOR_TOKEN", default="NoTokenSpecified")

CONFIG_OK = f"""
{CONFIG_BASE}
Expand All @@ -50,7 +50,6 @@
{CONFIG_BASE}
{URL}
{LOGINS}
{TOKEN}
"""

# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -94,7 +93,7 @@ def test_differentials_created():
needle = "D129553 [standalone-build-x86_64]: build lld"
assert any([needle in str(stat) for stat in stats])
# Verbose search (URL is prefixed instead of differential number)
option = "--ph-differentials-created --verbose"
option = "--ph-differentials-created --verbose "
stats = did.cli.main(option + INTERVAL)[0][0].stats[0].stats[0].stats
needle = "https://reviews.llvm.org/D129553 [standalone-build-x86_64]: build lld"
assert any([needle in str(stat) for stat in stats])
Expand All @@ -111,7 +110,7 @@ def test_differentials_reviewed():
needle = "D99780 workflows: Add GitHub action for automating some release tasks"
assert any([needle in str(stat) for stat in stats])
# Verbose search (URL is prefixed instead of differential number)
option = "--ph-differentials-reviewed --verbose"
option = "--ph-differentials-reviewed --verbose "
stats = did.cli.main(option + INTERVAL)[0][0].stats[0].stats[1].stats
needle = "https://reviews.llvm.org/D99780 workflows: Add GitHub action "\
"for automating some release tasks"
Expand Down

0 comments on commit 50a0128

Please sign in to comment.