-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Properly parse empty priority in the UI #170
Conversation
This contains the first real UI test. 🎉 |
Moving forward, I think it makes sense to have a |
@untitaker I hope you don't take reviewing this as an imposition, I just feel you'd like to review this (mostly because it sets a new example for tests) and you might have some comments or suggestions (or not). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why make a difference between None
and 0
? They have the same semantics.
tests/conftest.py
Outdated
@@ -69,6 +69,16 @@ def inner(tz='CET'): | |||
return inner | |||
|
|||
|
|||
@pytest.fixture | |||
def blank_todo(default_database): | |||
todo = model.FileTodo(new=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FileTodo
s are new
by default.
tests/conftest.py
Outdated
@@ -69,6 +69,16 @@ def inner(tz='CET'): | |||
return inner | |||
|
|||
|
|||
@pytest.fixture | |||
def blank_todo(default_database): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's more generally usable if this fixture returns a function that creates todos (eventually with a parameter for specifying list)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This reintroduces the bug fixed by #160 because now we might again end up using humanized datetimes when prefilling TodoEditor.
28638c4
to
6e5a950
Compare
Basically one is "don't store anything in the file", and the other "store 0". |
Are you sure this comment was meant for this PR? |
That was a mistake I think |
It's up to you whether you want to make the model more complex for a nicer file diff. |
Fixes #156