We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f6ff11 commit a973c91Copy full SHA for a973c91
1 file changed
tests/test_shellflow.py
@@ -13,13 +13,10 @@
13
from typing import Any
14
from unittest import mock
15
16
-import os
17
import pytest
18
from hypothesis import given
19
from hypothesis import strategies as st
20
21
-ZSH_AVAILABLE = os.path.exists("/bin/zsh")
22
-
23
from shellflow import (
24
VALID_EXPORT_SOURCES,
25
Block,
@@ -42,6 +39,8 @@
42
39
run_script,
43
40
)
44
41
+ZSH_AVAILABLE = Path("/bin/zsh").exists()
+
45
VALID_EXPORT_NAME_STRATEGY = st.from_regex(r"[A-Za-z_][A-Za-z0-9_]*", fullmatch=True)
46
INVALID_EXPORT_NAME_STRATEGY = st.one_of(
47
st.from_regex(r"[0-9][A-Za-z0-9_]*", fullmatch=True),
0 commit comments