Skip to content

Commit 271f616

Browse files
authored
Resolve paths in tests (#245)
1 parent 2788986 commit 271f616

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,3 +159,5 @@ jobs:
159159
run: |
160160
cd sdist/test
161161
pytest -vv || pytest -vv --lf
162+
# Ensure that the pytest plugin is importable.
163+
python -c "from jupyterlab_server import pytest_plugin"

tests/test_translation_api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def before_after_test(schemas_dir, user_settings_dir, labserverapp):
4848

4949
# Copy the schema files.
5050
test_data = os.path.join(HERE, '..', 'jupyterlab_server', 'test_data')
51+
test_data = os.path.abspath(test_data)
5152
src = os.path.join(test_data, 'schemas', '@jupyterlab')
5253
dst = os.path.join(str(schemas_dir), '@jupyterlab')
5354
if os.path.exists(dst):

tests/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
here = os.path.dirname(__file__)
2323

2424
with open(
25-
os.path.join(here, '..', 'jupyterlab_server', 'test_data', 'app-settings', 'overrides.json'),
25+
os.path.abspath(os.path.join(here, '..', 'jupyterlab_server', 'test_data', 'app-settings', 'overrides.json')),
2626
encoding='utf-8'
2727
) as fpt:
2828
big_unicode_string = json.load(fpt)["@jupyterlab/unicode-extension:plugin"]["comment"]

0 commit comments

Comments
 (0)