rename params
This commit is contained in:
@@ -13,6 +13,11 @@ PK = os.getenv('DYNAMODB_PARTITION_KEY', 'pk')
|
||||
SK = os.getenv('DYNAMODB_SORT_KEY', 'sk')
|
||||
|
||||
|
||||
patch = pytest.MonkeyPatch()
|
||||
patch.setenv('USER_TABLE', PYTEST_TABLE_NAME)
|
||||
patch.setenv('COURSE_TABLE', PYTEST_TABLE_NAME)
|
||||
|
||||
|
||||
@dataclass
|
||||
class LambdaContext:
|
||||
function_name: str = 'test'
|
||||
@@ -137,9 +142,6 @@ def dynamodb_seeds(dynamodb_client):
|
||||
|
||||
@pytest.fixture
|
||||
def mock_app(monkeypatch):
|
||||
for table_name in ['USER_TABLE', 'COURSE_TABLE']:
|
||||
monkeypatch.setenv(table_name, PYTEST_TABLE_NAME)
|
||||
|
||||
import app
|
||||
|
||||
return app
|
||||
|
||||
Reference in New Issue
Block a user