pytest-simple-settings
Usage
With default simple_settings.settings:
from simple_settings import settings
def test_foo(fake_settings):
fake_settings.FOO = 1
fake_settings.set(BAR=2)
assert settings.FOO == 1
assert settings.BAR == 2
With custom LazySettings instance
import pytest
from simple_settings import LazySettings
instance = LazySettings('settings')
@pytest.fixture()
def settings_instance():
return instance
def test_foo(fake_settings):
fake_settings.FOO = 1
fake_settings.set(BAR=2)
assert instance.FOO == 1
assert instance.BAR == 2
Release files for pytest-simple-settings 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pytest-simple-settings-0.1.5.tar.gz | 2.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytest_simple_settings-0.1.5-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 6.4 kB
Release files / pytest-simple-settings-0.1.5.tar.gz
| Download URL | pytest-simple-settings-0.1.5.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
30dd0a7ebf1e7e4a2f2d70afe50e47f4d2073499bb9d3fb22fab2f57eb8528e4
|
|
BLAKE2b-256 checksum How to use checksums |
f593f585cb649fad2cfcb95f083f5503465606456846f3d7bfcd9bde17bfb803
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.9.0
|
Release files / pytest_simple_settings-0.1.5-py2.py3-none-any.whl
| Download URL | pytest_simple_settings-0.1.5-py2.py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
d06c317aaf55a723fa3fdaa0b5e4959062f4f2e9d501376e26c8778e0b3e628d
|
|
BLAKE2b-256 checksum How to use checksums |
756261a0c29a4467eddead271f5ace2d4f8095b428698600fbc68820570de1fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.9.0
|