Skip to main content

simple-settings plugin for pytest

Project description


PyPI version PyPI - Python Version Build Status


With default simple_settings.settings:

from simple_settings import settings

def test_foo(fake_settings):
    fake_settings.FOO = 1

    assert settings.FOO == 1
    assert settings.BAR == 2

With custom LazySettings instance

import pytest
from simple_settings import LazySettings

instance = LazySettings('settings')

def settings_instance():
    return instance

def test_foo(fake_settings):
    fake_settings.FOO = 1

    assert instance.FOO == 1
    assert instance.BAR == 2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pytest-simple-settings, version 0.1.5
Filename, size File type Python version Upload date Hashes
Filename, size pytest_simple_settings-0.1.5-py2.py3-none-any.whl (3.8 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size pytest-simple-settings-0.1.5.tar.gz (2.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page