Some tests have a dependency on getting the right labels.
If a test makes a query to a populated sites.db, the test will return a different set of labels.
There are two options:
mocking everywhere we request the labels.
Create a db when we are running tests with the right information in it.
Option 2 seems a better choice.
We could rationalize it to a couple of controlled domains for our tests.
[ ] Create a fake db in unittests levels
[ ] Make sure the tests are using the right domains for this to be effective
[ ] Remove the mocking of extract_priority_label if it still exists
Some tests have a dependency on getting the right labels. If a test makes a query to a populated sites.db, the test will return a different set of labels.
There are two options:
Option 2 seems a better choice. We could rationalize it to a couple of controlled domains for our tests.
extract_priority_label
if it still existsThis mainly impacts webhooks tests