mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-28 13:36:14 +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
|
@ -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
Add a link
Reference in a new issue