Commit graph

19 commits

Author SHA1 Message Date
Christopher K. Hoadley
d3f0bfd0fc Add test to ensure that all sites have test data. If they do not, then the person running the tests will be able to see the list of sites missing coverage. 2019-02-09 23:34:09 -06:00
Christopher K. Hoadley
dea8c29351 Change tests so that all sites that share a common username are executed in parallel. Just the little bit of extra processing halves the time taken for the tests (~15s verus ~34s). This will only get worse as the test coverage improves... 2019-02-03 11:14:45 -06:00
Christopher K. Hoadley
bf0959d84b Convert all supported Response URL sites to use JSON driven tests. 2019-02-02 20:46:53 -06:00
Christopher K. Hoadley
a576af358f Convert all supported HTTP Status Code sites to use JSON driven tests. 2019-02-02 20:40:16 -06:00
Christopher K. Hoadley
be59b91107 Add information about a claimed and an unclaimed username to the site information. This will allow the tests to directly source the information from the JSON data. It will also allow people who add new sites to also add test data (which will automatically get tested). Add a new test method which finds all sites of a given detect algorithm, and which also has test vectors, and runs tests against them.
At the current time, the test vectors are optional.  But, once when there is finally complete coverage, then they will be required.  Anyone who adds a site without also adding test data will trigger a failure.
2019-02-02 20:32:06 -06:00
Christopher K. Hoadley
83aed9aeee Add test methods for Error Message detection method as well. Add Dribbble to tests. 2019-01-30 18:24:28 -06:00
Christopher K. Hoadley
6fc5c131db Convert Designspiration to use the Status Code detection method. The site gives a clean 404 error. Add to tests. 2019-01-30 18:15:42 -06:00
Christopher K. Hoadley
26ef2e1b9b Convert Codementor to use the Status Code detection method. The site gives a clean 404 error. Add to tests. 2019-01-30 18:10:06 -06:00
Christopher K. Hoadley
110b93a757 Convert Codecademy to use the Status Code detection method. The site gives a clean 404 error. Add to tests. 2019-01-30 18:07:29 -06:00
Christopher K. Hoadley
223d9716cb Convert BuzzFeed to use the Status Code detection method. The site gives a clean 404 error. Add to tests. 2019-01-30 18:04:24 -06:00
Christopher K. Hoadley
08ac008828 Convert Behance to use the Status Code detection method. The site gives a clean 404 error. Add to tests. 2019-01-30 17:58:14 -06:00
Christopher K. Hoadley
65e3820608 Convert Bandcamp to use the Status Code detection method. The site gives a clean 404 error. Add to tests. 2019-01-30 17:54:22 -06:00
Christopher K. Hoadley
c76b4524da Convert BLIP.fm to use the Status Code detection method. The site gives a clean 404 error. Add to tests. 2019-01-30 17:51:46 -06:00
Christopher K. Hoadley
8a82d883c6 Convert AngelList to use the Status Code detection method. The site gives a clean 404 error. Add to tests. 2019-01-30 17:49:04 -06:00
Christopher K. Hoadley
89787b1509 Add test methods for HTTP Status detection method as well. 2019-01-30 17:45:36 -06:00
Christopher K. Hoadley
f609320d3c Convert Canva to the more robust Response URL detection method. Add to tests to ensure that it is covered. 2019-01-30 17:25:05 -06:00
Christopher K. Hoadley
b237b8fe02 Problems with false positives on EyeEm/CreativeMarket/EVE Online. Add these sites to the tests to capture failure. 2019-01-23 19:13:09 -06:00
Christopher K. Hoadley
ae657460c8 Add coverage tests for all sites that use the response URL detection method. This test fails because Sherlock does not handle all of these sites properly. 2019-01-22 20:16:19 -06:00
Christopher K. Hoadley
f6860510ea Add basic test infrastructure using unittest. Add tests to verify the 3 mechanisms of determining that a username is *not* supported on a given site.
Created SherlockBaseTest() class that provides infrastructure for the tests.

TODO:  It seems that devRant is not detecting users that certainly exist.
TODO:  While running tests, there is a ResourceWarning from an unclosed SSLSocket.  This needs work.
2019-01-21 19:26:07 -06:00