WIP, to be cleaned and merged
This commit is contained in:
parent
314adbeb1d
commit
d1e3152a83
30 changed files with 1498 additions and 248 deletions
24
tests/test_ed_lrr.py
Normal file
24
tests/test_ed_lrr.py
Normal file
|
@ -0,0 +1,24 @@
|
|||
import pytest
|
||||
|
||||
stars_csv = "D:\\devel\\rust\\ED_LRR\\stars.csv"
|
||||
|
||||
|
||||
@pytest.mark.dependency()
|
||||
def test_import():
|
||||
import _ed_lrr
|
||||
|
||||
|
||||
@pytest.mark.dependency(depends=["test_import"])
|
||||
def test_search_works():
|
||||
import _ed_lrr
|
||||
|
||||
system_names = ["Ix", "Sol", "Colonia", "Sagittarius A*"]
|
||||
systems = _ed_lrr.find_sys(system_names, stars_csv)
|
||||
print(systems)
|
||||
|
||||
|
||||
@pytest.mark.dependency(depends=["test_import"])
|
||||
def test_zero_range_fails():
|
||||
import _ed_lrr
|
||||
|
||||
# _ed_lrr.route()
|
18
tests/test_gui.py
Normal file
18
tests/test_gui.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
import pytest
|
||||
|
||||
|
||||
@pytest.mark.dependency()
|
||||
def test_import():
|
||||
import ed_lrr_gui
|
||||
from ed_lrr_gui.main import main
|
||||
import ed_lrr_gui.gui as ED_LRR_GUI
|
||||
|
||||
|
||||
@pytest.mark.dependency(depends=["test_import"])
|
||||
def test_search_works():
|
||||
import ed_lrr_gui
|
||||
|
||||
|
||||
@pytest.mark.dependency(depends=["test_import"])
|
||||
def test_zero_range_fails():
|
||||
import ed_lrr_gui
|
Loading…
Add table
Add a link
Reference in a new issue