Open sastels opened 2 years ago
Could we categorize these tests with pytest and run these separate? I am not sure we'll check the warnings; if the site goes down, how do we surface it?
Yes - for example, we could have a suite of tests that assess third party services we rely on? One that wouldn't cause our build pipeline to fail?
The test in admin
test_blocklist1_can_contact_hibp_api()
actually goes out topwnedpasswords
. This leads to test failures if there's a problem with pwnedpasswords' api.It's not a great practice to have unit tests that require internet resources. We should consider eliminating this test, and instead adding a warning to
Blocklist.__call__()
when the code falls back to using our stored list of bad passwords.Tasks:
Blocklist.__call__()
so we know when HIBP is failing