Skip to content

Commit

Permalink
Move tests (#1135)
Browse files Browse the repository at this point in the history
  • Loading branch information
hainm authored Nov 25, 2024
1 parent e6989fc commit d3b099a
Show file tree
Hide file tree
Showing 42 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:

- name: Run tests
run: |
python -m pytest -vs nglview/tests --cov=nglview --cov-report=html --disable-pytest-warnings
python -m pytest -vs tests --cov=nglview --cov-report=html --disable-pytest-warnings
- name: Check installation with pip
run: |
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions nglview/tests/test_version.py → tests/test_version.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import json
import os
from pathlib import Path

import nglview as nv


def test_make_sure_versions_matched():
nglview_dir = os.path.join(os.path.dirname(__file__), '..')
nglview_dir = Path(__file__).resolve().parent.parent / 'nglview'

# frontend and backend
nglview_js_widgets = os.path.join(nglview_dir, 'static', 'index.js')
with open(nglview_js_widgets) as fh:
nglview_js_widgets = nglview_dir / 'static' / 'index.js'
with nglview_js_widgets.open() as fh:
for line in fh:
if '"name":"nglview-js-widgets"' in line:
break
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit d3b099a

Please sign in to comment.