mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 08:38:32 +02:00
[#766] Skip the broken test on windows for now
This commit is contained in:
parent
af6243c73d
commit
da55914ec3
2 changed files with 8 additions and 0 deletions
|
@ -20,6 +20,7 @@ Feature: Basic reading and writing to a journal
|
|||
When we run "jrnl -n 1"
|
||||
Then the output should contain "2013-07-23 09:00 A cold and stormy day."
|
||||
|
||||
@skip_win
|
||||
Scenario: Writing an empty entry from the editor
|
||||
Given we use the config "editor.yaml"
|
||||
When we open the editor and enter ""
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import shutil
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
||||
def before_feature(context, feature):
|
||||
|
@ -9,6 +10,9 @@ def before_feature(context, feature):
|
|||
feature.skip("Marked with @skip")
|
||||
return
|
||||
|
||||
if "skip_win" in feature.tags and "win32" in sys.platform:
|
||||
feature.skip("Skipping on Windows")
|
||||
return
|
||||
|
||||
def before_scenario(context, scenario):
|
||||
"""Before each scenario, backup all config and journal test data."""
|
||||
|
@ -36,6 +40,9 @@ def before_scenario(context, scenario):
|
|||
scenario.skip("Marked with @skip")
|
||||
return
|
||||
|
||||
if "skip_win" in scenario.effective_tags and "win32" in sys.platform:
|
||||
scenario.skip("Skipping on Windows")
|
||||
return
|
||||
|
||||
def after_scenario(context, scenario):
|
||||
"""After each scenario, restore all test data and remove working_dirs."""
|
||||
|
|
Loading…
Add table
Reference in a new issue