acidjunk / pricelist-backend

Pricelist backend
GNU General Public License v3.0
0 stars 0 forks source link

Session problem in unit tests #8

Open acidjunk opened 4 years ago

acidjunk commented 4 years ago

Tests that require a logged in user and other data from the fixtures are not correctly working.

I will create a failing test in a new branch for this.

@Guido: if you want to work on it: nice! Time boxed to 4 hours

acidjunk commented 4 years ago

I wrote a failing test in the open PR.

Note: that previously I used token based auth but as I switched to cookies not all tests/fixtures already used the cookie based stuff. So you will see a couple of todo's in the fixtures for accounts. I did a quick fix of a shop_admin_logged_in to illustrate the problem with a failing tests.

Any advice/hint/help is welcome.