Skip to content

Commit

Permalink
Expand test to keep year
Browse files Browse the repository at this point in the history
  • Loading branch information
nsorros committed Dec 9, 2021
1 parent a2e66cf commit 3baa36e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_preprocess_mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,14 @@ def test_process_data_with_filter_years():
}
processed_item = process_data(item, filter_years="2019,2020")
assert processed_item == None
item["year"] = 2020
expected_processed_item = {
"text": "This is an abstract",
"tags": ["T1", "T2"],
"meta": {
"journal": "Journal",
"year": 2020
}
}
processed_item = process_data(item, filter_years="2019,2020")
assert processed_item == expected_processed_item

0 comments on commit 3baa36e

Please sign in to comment.