Skip to content

Commit

Permalink
Fix delete problem test to use POST instead of GET
Browse files Browse the repository at this point in the history
  • Loading branch information
jdabtieu authored Dec 23, 2020
1 parent d8d2cc2 commit e2920d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_problems.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def test_problem(client, database):
client.get('/logout')

client.post('/login', data = {'username': 'admin', 'password': 'CTFOJadmin'})
result = client.get('/problem/helloworldtesting/delete', follow_redirects = True)
result = client.post('/problem/helloworldtesting/delete', follow_redirects = True)
assert result.status_code == 200
assert b'helloworldtesting' not in result.data
shutil.rmtree('dl')

0 comments on commit e2920d9

Please sign in to comment.