Skip to content

Commit

Permalink
update test for labextensions
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpio committed Aug 1, 2023
1 parent dfeddc2 commit 645251a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions integration-tests/test_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ def test_labextensions():
]

for e in extensions:
assert f"{e} \x1b[32m enabled \x1b[0m" in proc.stdout.decode()

# Ensure we have 'OK' messages in our stdout, to make sure everything is importable
assert proc.stderr.decode() == " - Validating: \x1b[32mOK\x1b[0m\n" * len(
extensions
)
# jupyter labextension lists outputs to stderr
out = proc.stderr.decode()
enabled_ok_pattern = re.compile(fr"{e}.*enabled.*OK")
matches = enabled_ok_pattern.search(proc.stderr.decode())
assert matches is not None

0 comments on commit 645251a

Please sign in to comment.