Skip to content

Commit

Permalink
Make whitelisted user test better
Browse files Browse the repository at this point in the history
It now tests if the post will be ignored with a bad username but a
whitelisted user
  • Loading branch information
csnardi committed Jan 29, 2015
1 parent 893ecc7 commit fc5ce69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_spamhandling.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def test_whitelisted_user():
user_url = 'http://stackoverflow.com/users/2/geoff-dalgas'
user = get_user_from_url(user_url)
add_whitelisted_user(user)
is_spam, reason = check_if_spam("", "", "", user_url, "stackoverflow.com", "1", False)
is_spam, reason = check_if_spam("", "", "bagprada", user_url, "stackoverflow.com", "1", False)
assert is_spam is False
# cleanup
os.remove("whitelistedUsers.txt")

0 comments on commit fc5ce69

Please sign in to comment.