Skip to content

Commit 0874ead

Browse files
committed
Support random changes in tox
1 parent 653a7ce commit 0874ead

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/apitist/random.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def add_types(
110110
def add_predefined(self, **kwargs):
111111
try:
112112
import faker
113-
except ImportError:
113+
except ModuleNotFoundError:
114114
raise ImportError(
115115
"Please pre-install Faker:"
116116
"\n\tpip install -e 'apitist[random]'"

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ commands =
1515
py.test {posargs}
1616
extras =
1717
all
18+
random
1819
testing

0 commit comments

Comments
 (0)