Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #491 pytest django Fix #491 pytest and django #646

Merged
merged 1 commit into from Aug 20, 2021
Merged

Conversation

rochacbruno
Copy link
Member

@rochacbruno rochacbruno commented Aug 20, 2021

@pytest.fixture(scope="session", autouse=True)
def set_test_settings():
    # https://github.com/rochacbruno/dynaconf/issues/491#issuecomment-745391955
    from django.conf import settings
    settings.setenv('pytest')

@rochacbruno rochacbruno linked an issue Aug 20, 2021 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Aug 20, 2021

Codecov Report

Merging #646 (0b7ce94) into master (243a14e) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #646   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           21        21           
  Lines         1621      1621           
=========================================
  Hits          1621      1621           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 243a14e...0b7ce94. Read the comment docs.

@rochacbruno rochacbruno merged commit d71c02e into master Aug 20, 2021
@rochacbruno rochacbruno deleted the 491_pytest branch August 20, 2021 19:14
rochacbruno added a commit that referenced this pull request Aug 20, 2021
rochacbruno added a commit that referenced this pull request Aug 20, 2021
Shortlog of commits since last release:

    Bruno Rocha (4):
          Fix #595 namedtuples are no more converted to BoxList (#623)
          fix #596 django override (#645)
          fix #491 pytest django Fix #491 pytest and django (#646)
          Delete requirements.txt

    FrankBattaglia (1):
          fix dict iterator methods for flask DynaconfConfig (#581)

    Robert Rosca (1):
          Add a warning if `--env` is passed to `init` (#629)

    Tanya Tereshchenko (1):
          Do not search anywhere if the absolute path to a file provided (#570)
rochacbruno added a commit that referenced this pull request Sep 9, 2021
Shortlog of commits since last release:

    Ambient Lighter (1):
          Fix typo (#647)

    Bruno Rocha (19):
          Release version 3.1.4
          demo link (#546)
          removed release_notes from the docs. (#550)
          HOTFIX: Add coverage for 2 lines on validators.
          Fix #595 namedtuples are no more converted to BoxList (#623)
          Fix black issues (#631)
          Update FUNDING.yml
          description and type annotation for validator (#634)
          Add myoy and pre-commit to CI (#635)
          Update codaci badge (#636)
          Remove dependabot (this project has no dependencies)
          fix #596 django override (#645)
          fix #491 pytest django Fix #491 pytest and django (#646)
          Delete requirements.txt
          Update FUNDING.yml
          Add support for dynaconf_hooks(post) issue #654 (#655)
          Move to Github Actions (#656)
          Bye Azure (#657)
          Bump dev version

    FrankBattaglia (1):
          fix dict iterator methods for flask DynaconfConfig (#581)

    Jacob Callahan (1):
          Add the ability for selective validation (#549)

    Kamil Gałuszka (1):
          Add support for Python 3.9 and remove Ubuntu 16.04 that is deprecated in Azure Pipelines (#618)

    Konstantin (2):
          Update configuration.md (#553)
          Update configuration.md (#554)

    Linus Torvalds (1):
          Fix a typo in the docs

    Martin Thoma (1):
          Add type annotations for dynaconf.utils (#450)

    Nicholas Dentandt (1):
          feat: add filter strategy with PrefixFilter (#625)

    Robert Rosca (1):
          Add a warning if `--env` is passed to `init` (#629)

    Tanya Tereshchenko (1):
          Do not search anywhere if the absolute path to a file provided (#570)

    Yusuf Kaka (1):
          Added an example using FastAPI (#571)

    dependabot-preview[bot] (2):
          Bump mkdocs-material from 7.0.5 to 7.0.6 (#552)
          Upgrade to GitHub-native Dependabot (#574)

    puntonim (1):
          Fix typo (#588)
rochacbruno added a commit that referenced this pull request Sep 9, 2021
Shortlog of commits since last release:

    Ambient Lighter (1):
          Fix typo (#647)

    Bruno Rocha (19):
          Release version 3.1.4
          demo link (#546)
          removed release_notes from the docs. (#550)
          HOTFIX: Add coverage for 2 lines on validators.
          Fix #595 namedtuples are no more converted to BoxList (#623)
          Fix black issues (#631)
          Update FUNDING.yml
          description and type annotation for validator (#634)
          Add myoy and pre-commit to CI (#635)
          Update codaci badge (#636)
          Remove dependabot (this project has no dependencies)
          fix #596 django override (#645)
          fix #491 pytest django Fix #491 pytest and django (#646)
          Delete requirements.txt
          Update FUNDING.yml
          Add support for dynaconf_hooks(post) issue #654 (#655)
          Move to Github Actions (#656)
          Bye Azure (#657)
          Bump dev version

    FrankBattaglia (1):
          fix dict iterator methods for flask DynaconfConfig (#581)

    Jacob Callahan (1):
          Add the ability for selective validation (#549)

    Kamil Gałuszka (1):
          Add support for Python 3.9 and remove Ubuntu 16.04 that is deprecated in Azure Pipelines (#618)

    Konstantin (2):
          Update configuration.md (#553)
          Update configuration.md (#554)

    Linus Torvalds (1):
          Fix a typo in the docs

    Martin Thoma (1):
          Add type annotations for dynaconf.utils (#450)

    Nicholas Dentandt (1):
          feat: add filter strategy with PrefixFilter (#625)

    Robert Rosca (1):
          Add a warning if `--env` is passed to `init` (#629)

    Tanya Tereshchenko (1):
          Do not search anywhere if the absolute path to a file provided (#570)

    Yusuf Kaka (1):
          Added an example using FastAPI (#571)

    dependabot-preview[bot] (2):
          Bump mkdocs-material from 7.0.5 to 7.0.6 (#552)
          Upgrade to GitHub-native Dependabot (#574)

    puntonim (1):
          Fix typo (#588)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error with dynaconf+django+pytest
1 participant