mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-07 16:56:13 +02:00
reorganize code, move around lots of functions
This commit is contained in:
parent
38b78b1d1f
commit
73a348b033
23 changed files with 462 additions and 470 deletions
|
@ -1,6 +1,8 @@
|
|||
import os
|
||||
import shutil
|
||||
import sys
|
||||
|
||||
from jrnl.os_compat import on_windows
|
||||
|
||||
|
||||
CWD = os.getcwd()
|
||||
|
||||
|
@ -19,7 +21,7 @@ def before_feature(context, feature):
|
|||
feature.skip("Marked with @skip")
|
||||
return
|
||||
|
||||
if "skip_win" in feature.tags and "win32" in sys.platform:
|
||||
if "skip_win" in feature.tags and on_windows:
|
||||
feature.skip("Skipping on Windows")
|
||||
return
|
||||
|
||||
|
@ -46,7 +48,7 @@ def before_scenario(context, scenario):
|
|||
scenario.skip("Marked with @skip")
|
||||
return
|
||||
|
||||
if "skip_win" in scenario.effective_tags and "win32" in sys.platform:
|
||||
if "skip_win" in scenario.effective_tags and on_windows:
|
||||
scenario.skip("Skipping on Windows")
|
||||
return
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue