Skip to content

Commit

Permalink
disable testcase due to not enough people looking west at the same time
Browse files Browse the repository at this point in the history
  • Loading branch information
stitch committed Dec 11, 2024
1 parent 3173909 commit 66c0730
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions dashboard/internet_nl_dashboard/tests/test_spreadsheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,13 @@ def test_valid(file):
valid = is_valid_mimetype(file)
assert valid is False

# This test has been disabled as magic is what it says it is: magic. An insufferable timesink that performs
# differently on every system depending on the phase of the moon and the numbers of people on the planet
# facing west at the same time. (this number fluctuates but is surprisingly consistent).
# Let's instead use a corrupted xlsx that should not work when parsing.
file = f"{path}/test spreadsheet uploads/waterschappen_corrupted.xlsx"
valid = is_valid_mimetype(file)
assert valid is True
# file = f"{path}/test spreadsheet uploads/waterschappen_corrupted.xlsx"
# valid = is_valid_mimetype(file)
# assert valid is True

# this will crash and burn, and therefore return an empty set.
data = get_data(file)
Expand Down

0 comments on commit 66c0730

Please sign in to comment.