FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Parsertest fix by cadenmyers13 · Pull Request #231 · diffpy/diffpy.srfit · GitHub

Repository navigation

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (1) .rst  (1) All 2 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
23 changes: 23 additions & 0 deletions news/parsertest-fix.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
**Added:**

* No news needed: fix test.

**Changed:**

* <news item>

**Deprecated:**

* <news item>

**Removed:**

* <news item>

**Fixed:**

* <news item>

**Security:**

* <news item>
6 changes: 2 additions & 4 deletions tests/test_profileparser.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,12 @@ def test_parse_file(
actual_dx = as_list(parser._dx)
actual_dy = as_list(parser._dy)
actual_metadata = parser._meta
actual_metadata["filename"] = actual_metadata["filename"].split("/")[-1]

EXPECTED_META["filename"] = str(input_file).split("/")[-1]
actual_metadata["filename"] = Path(actual_metadata["filename"]).name
expected_metadata = {**EXPECTED_META, "filename": input_file.name}
assert actual_x == expected_x
assert actual_y == expected_y
assert actual_dx == expected_dx
assert actual_dy == expected_dy
expected_metadata = EXPECTED_META
assert actual_metadata == expected_metadata


Expand Down
Loading

Back | FazBrowse Home | New Git URL