[#766] Skip the broken test on windows for now

This commit is contained in:
Jonathan Wren 2019-12-10 22:05:38 -08:00
parent af6243c73d
commit da55914ec3
2 changed files with 8 additions and 0 deletions

View file

@ -20,6 +20,7 @@ Feature: Basic reading and writing to a journal
When we run "jrnl -n 1" When we run "jrnl -n 1"
Then the output should contain "2013-07-23 09:00 A cold and stormy day." 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 Scenario: Writing an empty entry from the editor
Given we use the config "editor.yaml" Given we use the config "editor.yaml"
When we open the editor and enter "" When we open the editor and enter ""

View file

@ -1,5 +1,6 @@
import shutil import shutil
import os import os
import sys
def before_feature(context, feature): def before_feature(context, feature):
@ -9,6 +10,9 @@ def before_feature(context, feature):
feature.skip("Marked with @skip") feature.skip("Marked with @skip")
return return
if "skip_win" in feature.tags and "win32" in sys.platform:
feature.skip("Skipping on Windows")
return
def before_scenario(context, scenario): def before_scenario(context, scenario):
"""Before each scenario, backup all config and journal test data.""" """Before each scenario, backup all config and journal test data."""
@ -36,6 +40,9 @@ def before_scenario(context, scenario):
scenario.skip("Marked with @skip") scenario.skip("Marked with @skip")
return return
if "skip_win" in scenario.effective_tags and "win32" in sys.platform:
scenario.skip("Skipping on Windows")
return
def after_scenario(context, scenario): def after_scenario(context, scenario):
"""After each scenario, restore all test data and remove working_dirs.""" """After each scenario, restore all test data and remove working_dirs."""