Skip to content

Commit

Permalink
Ensure DJANGO_SETTINGS_MODULE remains upper-case
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed May 20, 2024
1 parent 63199d9 commit e93ad7d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions pyproject_migrator/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def translate_config(config: dict, *, ws_split_keys=()) -> dict:

def process_config_file(res: Result, pth: Path):
config = configparser.ConfigParser()
config.optionxform = str
config.read(pth)
setuptools_sections = {}
flake8_sections = {}
Expand Down
1 change: 1 addition & 0 deletions tests/__snapshots__/test_cli.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
}),
'pytest': Table({
'ini_options': Table({
'DJANGO_SETTINGS_MODULE': 'my_test_settings.settings',
'doctest_optionflags': Array([
'NORMALIZE_WHITESPACE',
'IGNORE_EXCEPTION_DETAIL',
Expand Down
1 change: 1 addition & 0 deletions tests/victim/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ profile = black
multi_line_output = 3

[tool:pytest]
DJANGO_SETTINGS_MODULE = my_test_settings.settings
norecursedirs = bower_components node_modules foo bar
doctest_optionflags = NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL ALLOW_UNICODE
filterwarnings =
Expand Down

0 comments on commit e93ad7d

Please sign in to comment.