Skip to content

Commit

Permalink
test: (new) generate query string with no fields raises error
Browse files Browse the repository at this point in the history
  • Loading branch information
BeatsuDev committed Sep 10, 2024
1 parent 0fd3357 commit ff390a5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_query_creator_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ def test_generate_query_string():
}
assert generate_query_string(fields) == correct_string

def test_generate_query_string_with_no_fields_raises_error():
fields = {}
with pytest.raises(ValueError):
generate_query_string(fields)

# Generate function query string function

def test_generate_function_query_string():
Expand Down

0 comments on commit ff390a5

Please sign in to comment.