Skip to content

Commit

Permalink
test against windows Path explicitly (#24)
Browse files Browse the repository at this point in the history
* test against windows Path explicitly

* readd Path import
  • Loading branch information
alisterburt authored Feb 28, 2024
1 parent f4d3826 commit 96b7b22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_data_models.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from pathlib import Path
from pathlib import Path, PureWindowsPath
from tempfile import NamedTemporaryFile

from mdocfile.data_models import MdocGlobalData, MdocSectionData, Mdoc
Expand Down Expand Up @@ -66,7 +66,7 @@ def test_section_data_from_lines():
assert data.MagIndex == 31
assert data.MinMaxMean == (5, 1403, 623.699)
assert data.TargetDefocus == -4
assert data.SubFramePath == Path(r'D:\DATA\Flo\HGK149_20151130\frames\TS_01_000_0.0.mrc')
assert data.SubFramePath == PureWindowsPath(r'D:\DATA\Flo\HGK149_20151130\frames\TS_01_000_0.0.mrc')
assert data.NumSubFrames == 8
assert data.DateTime == '30-Nov-15 15:21:38'

Expand Down

0 comments on commit 96b7b22

Please sign in to comment.