question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow override_settings in tests

See original GitHub issue

Use django-appsettings or similar approach to enable override_settings to be used in tests.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
alexdlairdcommented, Dec 14, 2017

PR tested and submitted. CI building looking good.

Thoughts, @fabiocaccamo? Could we get this in a minor version released to pip ASAP?

1reaction
alexdlairdcommented, Dec 14, 2017

@ziima While that would work, it seems a bit overkill—I’m assuming @fabiocaccamo doesn’t want to incur additional dependencies for this submodule just to make this work, and I don’t think we should need to.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Overriding configuration in ASP.NET Core integration tests
This post gives an overview of the various ways to override configuration values in ASP.NET Core integration tests.
Read more >
Override settings in django tests - Stack Overflow
If you want to use the smtp backend, you can override the setting. @override_settings(EMAIL_BACKEND='django.core.mail.backends.smtp.
Read more >
Override Spring Boot Configuration Properties For Tests
The first approach for overriding properties helps whenever we have a set of static configuration values that are valid for multiple tests. We ......
Read more >
Provide a way to override settings in Django tests - GitHub
django-override-settings provides an easy way to override settings in Django tests. The override_settings class can be used as either a class/method decorator ...
Read more >
Testing tools - Django documentation
Django provides a small set of tools that come in handy when writing tests. The test client¶. The test client is a Python...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found