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.

Source Distribution

pytest-simple-settings-0.1.5.tar.gz (2.6 kB view hashes)

Uploaded source

Built Distribution

Supported by

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