Skip to content

Commit

Permalink
namespace fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsteve committed Oct 13, 2022
1 parent 9474247 commit c6a2a95
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions hermes_merit/calibration/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .calibration import *
8 changes: 4 additions & 4 deletions hermes_merit/tests/test_calibration.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import pytest
from hermes_merit.calibration.calibration import *
import hermes_merit.calibration as calib


def test_calibrate_file():
with pytest.raises(ValueError) as excinfo:
calibrate_file("datafile_with_no_calib.cdf")
calib.calibrate_file("datafile_with_no_calib.cdf")
assert (
str(excinfo.value)
== "Calibration file for datafile_with_no_calib.cdf not found."
)


def test_get_calibration_file():
assert get_calibration_file("") is None
assert calib.get_calibration_file("") is None


def test_read_calibration_file():
assert read_calibration_file("calib_file") is None
assert calib.read_calibration_file("calib_file") is None

0 comments on commit c6a2a95

Please sign in to comment.