We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe570fd commit 346e593Copy full SHA for 346e593
2 files changed
b2b/factories.py
@@ -35,7 +35,7 @@ class OrganizationPageFactory(wagtail_factories.PageFactory):
35
"""OrganizationPage factory class"""
36
37
name = LazyAttribute(lambda _: FAKE.unique.company())
38
- org_key = LazyAttribute(lambda _: FAKE.unique.text(max_nb_chars=5))
+ org_key = LazyAttribute(lambda _: "".join(FAKE.unique.random_letters(length=5)))
39
org_key_prefix = UAI_COURSEWARE_ID_PREFIX
40
description = LazyAttribute(lambda _: FAKE.unique.text())
41
logo = None
conftest.py
@@ -84,4 +84,5 @@ def pytest_configure(config):
84
@pytest.fixture(autouse=True, scope="module")
85
def fake() -> Faker:
86
"""Fixture to provide a Faker instance"""
87
+
88
return Faker()
0 commit comments