Skip to content

Commit

Permalink
#150: Fix order filter test failures
Browse files Browse the repository at this point in the history
- test_direction_is_uppercase() wasn't being destroyed correctly
  • Loading branch information
MRichards99 committed Nov 30, 2020
1 parent 49ef7f8 commit 90f14a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/icat/filters/test_order_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@ def test_direction_is_uppercase(self, icat_query):
"""Direction must be uppercase for Python ICAT to see the input as valid"""
test_filter = PythonICATOrderFilter("id", "asc")

filter_handler = FilterOrderHandler()
filter_handler.add_filter(test_filter)

assert test_filter.direction == "ASC"

filter_handler.clear_python_icat_order_filters()

def test_result_order_appended(self, icat_query):
id_filter = PythonICATOrderFilter("id", "ASC")
title_filter = PythonICATOrderFilter("title", "DESC")
Expand Down

0 comments on commit 90f14a1

Please sign in to comment.