bhark / Konsent

A platform designed to help groups make decisions without hierarchy and representatives, built on anarchist values.
GNU General Public License v3.0
24 stars 4 forks source link

Add tests for phase updating #59

Open bhark opened 6 years ago

bhark commented 6 years ago

See #57

ghost commented 6 years ago

the conftest.py in tests seem to have been deleted, any idea in which commit this happened? do you try to run the tests before commiting??

ghost commented 6 years ago

8f4b2b47afb01b742f8e473662dd5bd65f56d8f2 did you force push btw? i can't see to find the diff but the file was gone after this commit

bhark commented 6 years ago

I really doubt that i force pushed, strange... I've added it again in the feature/issue#19 branch, sorry about that..

I've just been running pytest on the user_story.py file alone. As i said, pytest isn't my strong suit, I'm not really used to it, should probably do some more research.

An unrelated update: i bought a domain and upgraded the pythonanywhere account (Fossidarity helped pay for it). Most "good" domains were taken, but i got konsent.xyz, which i think is just fine.

ghost commented 6 years ago

i can help with the shitty costs too.

i think i will have time this w/e to fix the tests and add some more.

you gotta checkout pytest, it's sweet. you just use assert and pytest analyzes errors and such, you just run pytest in the root directory of the project to run the tests.

ghost commented 6 years ago

I can also set up a CI like Travis if you want, it's free for FOSS projects, but it needs permissions so you'll have to accept or something, i will push a PR and we'll see what it needs