mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
Remove broken tests
This commit is contained in:
parent
23ae0fa1cc
commit
53377f3206
2 changed files with 7 additions and 49 deletions
|
@ -565,41 +565,6 @@ Feature: Custom formats
|
||||||
| basic_dayone.yaml |
|
| basic_dayone.yaml |
|
||||||
|
|
||||||
|
|
||||||
Scenario Outline: Export calendar heatmap
|
|
||||||
Given we use the config "<config_file>"
|
|
||||||
And we use the password "test" if prompted
|
|
||||||
When we run "jrnl --format calendar"
|
|
||||||
Then the output should be
|
|
||||||
──────────────────────────────────────────────────────────────────────── 2013 ─────────────────────────────────────────────────────────────────────────
|
|
||||||
|
|
||||||
June 2013 (2 entries) July 2013 (No entries) August 2013 (No entries) September 2013 (No entries) October 2013 (No entries)
|
|
||||||
|
|
||||||
Mon Tue Wed Thu Fri Sat Sun Mon Tue Wed Thu Fri Sat Sun Mon Tue Wed Thu Fri Sat Sun Mon Tue Wed Thu Fri Sat Sun Mon Tue Wed Thu Fri Sat Sun
|
|
||||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━ ━━━━━━━━━━━━━━━━━━━━━━━━━━━ ━━━━━━━━━━━━━━━━━━━━━━━━━━━ ━━━━━━━━━━━━━━━━━━━━━━━━━━━ ━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
||||||
1 2 1 2 3 4 5 6 7 1 2 3 4 1 1 2 3 4 5 6
|
|
||||||
3 4 5 6 7 8 9 8 9 10 11 12 13 14 5 6 7 8 9 10 11 2 3 4 5 6 7 8 7 8 9 10 11 12 13
|
|
||||||
10 11 12 13 14 15 16 15 16 17 18 19 20 21 12 13 14 15 16 17 18 9 10 11 12 13 14 15 14 15 16 17 18 19 20
|
|
||||||
17 18 19 20 21 22 23 22 23 24 25 26 27 28 19 20 21 22 23 24 25 16 17 18 19 20 21 22 21 22 23 24 25 26 27
|
|
||||||
24 25 26 27 28 29 30 29 30 31 26 27 28 29 30 31 23 24 25 26 27 28 29 28 29 30 31
|
|
||||||
30
|
|
||||||
|
|
||||||
November 2013 (No entries) December 2013 (No entries)
|
|
||||||
|
|
||||||
Mon Tue Wed Thu Fri Sat Sun Mon Tue Wed Thu Fri Sat Sun
|
|
||||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━ ━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
||||||
1 2 3 1
|
|
||||||
4 5 6 7 8 9 10 2 3 4 5 6 7 8
|
|
||||||
11 12 13 14 15 16 17 9 10 11 12 13 14 15
|
|
||||||
18 19 20 21 22 23 24 16 17 18 19 20 21 22
|
|
||||||
25 26 27 28 29 30 23 24 25 26 27 28 29
|
|
||||||
30 31
|
|
||||||
|
|
||||||
|
|
||||||
Examples: configs
|
|
||||||
| config_file |
|
|
||||||
| simple.yaml |
|
|
||||||
|
|
||||||
|
|
||||||
Scenario Outline: display_format short and pretty do not crash if specified as config values
|
Scenario Outline: display_format short and pretty do not crash if specified as config values
|
||||||
Given we use the config "<config_file>"
|
Given we use the config "<config_file>"
|
||||||
And we use the password "test" if prompted
|
And we use the password "test" if prompted
|
||||||
|
|
|
@ -84,15 +84,8 @@ def output_should_not_contain(expected_output, cli_run):
|
||||||
@then(parse("the output should be\n{expected_output}"))
|
@then(parse("the output should be\n{expected_output}"))
|
||||||
@then(parse('the output should be "{expected_output}"'))
|
@then(parse('the output should be "{expected_output}"'))
|
||||||
def output_should_be(expected_output, cli_run):
|
def output_should_be(expected_output, cli_run):
|
||||||
from pprint import pprint
|
|
||||||
actual = cli_run["stdout"].strip()
|
actual = cli_run["stdout"].strip()
|
||||||
print("ACTUAL: \n\n")
|
|
||||||
print(type(actual))
|
|
||||||
pprint(actual)
|
|
||||||
expected = expected_output.strip()
|
expected = expected_output.strip()
|
||||||
print("EXPECTED: \n\n")
|
|
||||||
print(type(expected))
|
|
||||||
pprint(expected)
|
|
||||||
assert actual == expected
|
assert actual == expected
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue