[Tests] makes sure --version works

Directly reads the version number from pyproject.toml
This commit is contained in:
MinchinWeb 2020-03-21 21:50:39 -06:00
parent e489971877
commit 9017f96576
4 changed files with 36 additions and 1 deletions

View file

@ -122,3 +122,9 @@ Feature: Zapped bugs should stay dead.
Then the output should contain "This thing happened yesterday"
Then the output should contain "Adding an entry right now."
Then the output should not contain "A future entry."
Scenario: Version numbers should stay in sync
Given we use the config "basic.yaml"
When we run "jrnl --version"
Then we should get no error
Then the output should contain pyproject.toml version