mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-17 19:48:31 +02:00
remove skip_editor test and tag
This commit is contained in:
parent
d0921fb7b6
commit
e788ee59ee
2 changed files with 6 additions and 9 deletions
|
@ -144,12 +144,11 @@ Feature: Custom formats
|
||||||
| basic_folder.yaml |
|
| basic_folder.yaml |
|
||||||
| basic_dayone.yaml |
|
| basic_dayone.yaml |
|
||||||
|
|
||||||
@skip_editor # .TODO return after editor steps implemented
|
|
||||||
Scenario Outline: Increasing Headings on Markdown export
|
Scenario Outline: Increasing Headings on Markdown export
|
||||||
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
|
||||||
When we open the editor and append
|
Given we append to the editor if opened
|
||||||
[2020-10-14 13:23] Heading Test
|
[2021-10-14 13:23] Heading Test
|
||||||
|
|
||||||
H1-1
|
H1-1
|
||||||
=
|
=
|
||||||
|
@ -191,13 +190,15 @@ Feature: Custom formats
|
||||||
|
|
||||||
More stuff
|
More stuff
|
||||||
more stuff again
|
more stuff again
|
||||||
|
When we run "jrnl --edit -1"
|
||||||
|
Then the editor should have been called
|
||||||
When we run "jrnl -1 --export markdown"
|
When we run "jrnl -1 --export markdown"
|
||||||
Then the output should be
|
Then the output should be
|
||||||
# 2020
|
# 2021
|
||||||
|
|
||||||
## October
|
## October
|
||||||
|
|
||||||
### 2020-10-14 13:23 Heading Test
|
### 2021-10-14 13:23 Heading Test
|
||||||
|
|
||||||
#### H1-1
|
#### H1-1
|
||||||
|
|
||||||
|
|
|
@ -17,10 +17,6 @@ pytest_plugins = [
|
||||||
def pytest_bdd_apply_tag(tag, function):
|
def pytest_bdd_apply_tag(tag, function):
|
||||||
if tag == "skip_win":
|
if tag == "skip_win":
|
||||||
marker = mark.skipif(on_windows(), reason="Skip test on Windows")
|
marker = mark.skipif(on_windows(), reason="Skip test on Windows")
|
||||||
elif tag == "skip_editor":
|
|
||||||
marker = mark.skip(
|
|
||||||
reason="Skipping editor-related test. We should come back to this!"
|
|
||||||
)
|
|
||||||
else:
|
else:
|
||||||
# Fall back to pytest-bdd's default behavior
|
# Fall back to pytest-bdd's default behavior
|
||||||
return None
|
return None
|
||||||
|
|
Loading…
Add table
Reference in a new issue