Skip to content

Commit

Permalink
♻️ refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ayase-mstk committed Jun 26, 2024
1 parent 10b28ea commit dc061c7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/integration_test/upload_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,16 @@ def run_test(conf, req_data):
# test 実行
expect_headers_exist(actual)

if not req_data["can_upload"]:
if req_data["can_upload"]:
assert (
actual.status_code == 200
actual.status_code == 201
), f"Status code must be 201, but actual {actual.status_code}"
assert_file_not_created(f"{actual_path}")
assert_file_content(f"{actual_path}", f"{expect_path}")
else:
assert (
actual.status_code == 201
actual.status_code == 200
), f"Status code must be 201, but actual {actual.status_code}"
assert_file_content(f"{actual_path}", f"{expect_path}")
assert_file_not_created(f"{actual_path}")

finally:
WEBSERV.kill()
Expand Down

0 comments on commit dc061c7

Please sign in to comment.