{ "info": { "author": "Timofey Kukushkin", "author_email": "tima@kukushkin.me", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Plugins", "Framework :: Pytest", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: Testing :: Mocking" ], "description": "# pytest-simple-settings\n\n[![PyPI version](https://badge.fury.io/py/pytest-simple-settings.svg)](https://pypi.org/project/pytest-simple-settings/) [![Build Status](https://travis-ci.org/tkukushkin/pytest-simple-settings.svg?branch=master)](https://travis-ci.org/tkukushkin/pytest-simple-settings)\n\n## Usage\n\nWith default `simple_settings.settings`:\n\n```python\nfrom simple_settings import settings\n\n\ndef test_foo(fake_settings):\n fake_settings.FOO = 1\n fake_settings.set(BAR=2)\n\n assert settings.FOO == 1\n assert settings.BAR == 2\n```\n\nWith custom `LazySettings` instance\n```python\nimport pytest\nfrom simple_settings import LazySettings\n\n\ninstance = LazySettings('settings')\n\n\n@pytest.fixture()\ndef settings_instance():\n return instance\n\n\ndef test_foo(fake_settings):\n fake_settings.FOO = 1\n fake_settings.set(BAR=2)\n\n assert instance.FOO == 1\n assert instance.BAR == 2\n```\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/tkukushkin/pytest-simple-settings", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pytest-simple-settings", "package_url": "https://pypi.org/project/pytest-simple-settings/", "platform": "", "project_url": "https://pypi.org/project/pytest-simple-settings/", "project_urls": { "Homepage": "https://github.com/tkukushkin/pytest-simple-settings", "Source": "https://github.com/tkukushkin/pytest-simple-settings" }, "release_url": "https://pypi.org/project/pytest-simple-settings/0.1.2/", "requires_dist": [ "pytest", "simple-settings", "typing ; python_version < \"3\"", "pycodestyle ; extra == 'test'", "pylint ; extra == 'test'", "pytest-cov ; extra == 'test'" ], "requires_python": "", "summary": "simple-settings plugin for pytest", "version": "0.1.2" }, "last_serial": 5167144, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "e137a574c1d2804daf9c51470a57d9c1", "sha256": "897c87d9e714955a50f886a76db8166798e7a0dc7e157df69d570e6b1e9ae554" }, "downloads": -1, "filename": "pytest_simple_settings-0.1.1-py2-none-any.whl", "has_sig": false, "md5_digest": "e137a574c1d2804daf9c51470a57d9c1", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 3501, "upload_time": "2019-04-20T06:41:08", "url": "https://files.pythonhosted.org/packages/ec/27/ec8723c9250de9251ce9ec5bbe7dd6b896ae037e6e043592a790bfeb657d/pytest_simple_settings-0.1.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9939d6ad77ed1c097967f8da977be270", "sha256": "22a00239a52c379f3c6e6e5e28718e280a51297ddc73c6c31f6cbec8086d5b4e" }, "downloads": -1, "filename": "pytest_simple_settings-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "9939d6ad77ed1c097967f8da977be270", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3501, "upload_time": "2019-04-20T06:41:33", "url": "https://files.pythonhosted.org/packages/3f/d2/cff8c5a336ab1146f6b642bd8f2c1c0b7b98c11c79175c4095baf789b9e2/pytest_simple_settings-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c69fce774c4b93d618d22ed13b00192e", "sha256": "c9fed04fb0da8d3cd28518d042ffd9a9ef1951e7819569db2f536096d142bcad" }, "downloads": -1, "filename": "pytest-simple-settings-0.1.1.tar.gz", "has_sig": false, "md5_digest": "c69fce774c4b93d618d22ed13b00192e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1919, "upload_time": "2019-04-20T06:41:10", "url": "https://files.pythonhosted.org/packages/d4/23/fdeca4b601978d6ed12d7c4086ed1099cace3031639cd5217efb57d64d2a/pytest-simple-settings-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "9941b58c73c0e68b272592881bcc33a6", "sha256": "9abc5b15cd06e1e8a8b4621012815f09810a41e00ae1df5b6c418e6da989ed0c" }, "downloads": -1, "filename": "pytest_simple_settings-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9941b58c73c0e68b272592881bcc33a6", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3760, "upload_time": "2019-04-20T07:02:22", "url": "https://files.pythonhosted.org/packages/05/c0/b705eeb66ca6f7b5b06b5e3c1d9439337965661ced4a859a5d9bbe6d6568/pytest_simple_settings-0.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0085cd3b708d567f6f5c98c20bffd4a3", "sha256": "f46fceeb1fcfbf7f818fb4acd39bc3e43cf67e711c54025307c697f5e56f7ffa" }, "downloads": -1, "filename": "pytest-simple-settings-0.1.2.tar.gz", "has_sig": false, "md5_digest": "0085cd3b708d567f6f5c98c20bffd4a3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2346, "upload_time": "2019-04-20T07:02:23", "url": "https://files.pythonhosted.org/packages/a6/21/652c5252b825ab763d9f50f460d42f105ac6ed26f1cdda7f4897fa668c63/pytest-simple-settings-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9941b58c73c0e68b272592881bcc33a6", "sha256": "9abc5b15cd06e1e8a8b4621012815f09810a41e00ae1df5b6c418e6da989ed0c" }, "downloads": -1, "filename": "pytest_simple_settings-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9941b58c73c0e68b272592881bcc33a6", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3760, "upload_time": "2019-04-20T07:02:22", "url": "https://files.pythonhosted.org/packages/05/c0/b705eeb66ca6f7b5b06b5e3c1d9439337965661ced4a859a5d9bbe6d6568/pytest_simple_settings-0.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0085cd3b708d567f6f5c98c20bffd4a3", "sha256": "f46fceeb1fcfbf7f818fb4acd39bc3e43cf67e711c54025307c697f5e56f7ffa" }, "downloads": -1, "filename": "pytest-simple-settings-0.1.2.tar.gz", "has_sig": false, "md5_digest": "0085cd3b708d567f6f5c98c20bffd4a3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2346, "upload_time": "2019-04-20T07:02:23", "url": "https://files.pythonhosted.org/packages/a6/21/652c5252b825ab763d9f50f460d42f105ac6ed26f1cdda7f4897fa668c63/pytest-simple-settings-0.1.2.tar.gz" } ] }