Phuks-co / throat

Open Source link aggregator and discussion platform powering Phuks
https://phuks.co
MIT License
74 stars 32 forks source link

Speed up tests by using a regexp to find the CSRF token #388

Closed happy-river closed 3 years ago

happy-river commented 3 years ago

Instead of using BeautifulSoup to find the CSRF token in a page of HTML, use a regular expression. This speeds up the tests by about 10%.