This commit is contained in:
@@ -15,6 +15,7 @@ KEY = 'test-api-key-' + 'x'*40
|
||||
|
||||
@pytest.fixture
|
||||
def client(tmp_path, monkeypatch):
|
||||
monkeypatch.setenv('STORAGE_BACKEND', 'local')
|
||||
monkeypatch.setenv('STORAGE_DIR', str(tmp_path))
|
||||
monkeypatch.setenv('DATABASE_URL', f'sqlite:///{tmp_path}/test.db')
|
||||
monkeypatch.setenv('API_KEY', KEY)
|
||||
|
||||
مرجع در شماره جدید
مسدود کردن کاربر