pytest-docker-fixtures


Namepytest-docker-fixtures JSON
Version 1.3.19 PyPI version JSON
download
home_pagehttps://github.com/guillotinaweb/pytest-docker-fixtures
Summarypytest docker fixtures
upload_time2024-04-03 14:39:10
maintainerNone
docs_urlNone
authorNathan Van Gheem
requires_pythonNone
licenseBSD
keywords pytest fixtures docker
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Introduction
============

Provide various service pytest fixtures.


Install
-------

`pip install pytest-docker-fixtures`

Usages
------

In your conftest.py, add the following: ::

    pytest_plugins = ['pytest_docker_fixtures']

And to use the fixtures: ::

    def test_foobar(redis):
        pass


Available fixtures
------------------

PRs welcome!

- cockroach (require to be installed with `pip install pytest-docker-fixtures[pg]`)
- es (elasticsearch)
- etcd
- kafka (require to be installed with `pip install pytest-docker-fixtures[kafka]`)
- memcached (require to be installed with `pip install pytest-docker-fixtures[memcached]`)
- minio
- mysql (require to be installed with `pip install pytest-docker-fixtures[mysql]`)
- pg (require to be installed with `pip install pytest-docker-fixtures[pg]`)
- rabbitmq (require to be installed with `pip install pytest-docker-fixtures[rabbitmq]`)
- redis
- stripe (stripemock)
- emqx
- influxdb

Configuring custom images
-------------------------

You can also configure custom images to use::

    from pytest_docker_fixtures import images
    images.configure(
        'elasticsearch',
        'docker.elastic.co/elasticsearch/elasticsearch-platinum', '6.2.4',
        env={},
        options={}
    )

1.3.19 (2024-04-03)
-------------------

- Adding emqx fixture [nilbacardit26]
- Adding influxdb fixture [nilbacardit26]

1.3.18 (2023-11-17)
-------------------

- Remove container object after stopping it [sunbit]

1.3.17 (2023-05-02)
-------------------

- Set docker api version to auto
  [vangheem]


1.3.16 (2023-03-24)
-------------------

- Use compatibile version of redis with arm support
  [vangheem]

1.3.15 (2022-11-17)
-------------------

- Set Redis image version to 6.2.6 for amd64 arch [albertnadal]


1.3.14 (2022-07-06)
-------------------

- Add stripe/stripemock image [jotare]


1.3.13 (2021-11-23)
-------------------

- Support for Apple Silicon images [bloodbare]


1.3.12 (2021-08-30)
-------------------

- Add support for remote docker daemons [sunbit]


1.3.11 (2020-09-30)
-------------------

- fix release

1.3.10 (2020-09-30)
-------------------

- Add memcached docker image [lferran]


1.3.9 (2020-07-10)
------------------

- Fix passing options to image configuration
  [gitcarbs]


1.3.8 (2020-07-02)
------------------

- Stop hardcoding db, user, and password in Postgresql.check()
  [marshalium]


1.3.7 (2020-05-04)
------------------

- Change psycopg2 dependency to psycopg2-binary


1.3.6 (2020-02-14)
------------------

- Update to working postgres image after upstream 9.6 change


1.3.5 (2019-10-01)
------------------

- minio: use random port (breaking change!)
  [masipcat]


1.3.4 (2019-09-04)
------------------

- Be able to override with env variables
  [vangheem]


1.3.3 (2019-08-14)
------------------

- Add support for MySQL
  [masipcat]


1.3.2 (2019-07-19)
------------------

- Fix: custom max_wait_s option should not be passed to docker images [lferran]

1.3.1 (2019-07-19)
------------------

- Allow configuring time to wait for image to be setup [lferran]


1.3.0 (2019-04-05)
------------------

- Be able to configure more of image
  [vangheem]

- Make sure ImportError is bubbled
  [vangheem]


1.2.10 (2019-02-28)
-------------------

- minio: configure a custom version of the image doesn't work
  [masipcat]
- minio: check() fails because Minio responds with status 403
  [masipcat]


1.2.9 (2019-01-09)
------------------

- Fix Minio returning port = None
  [masipcat]


1.2.8 (2019-01-03)
------------------

- Add support for Minio
  [masipcat]


1.2.7 (2018-11-19)
------------------

- ensure Kafka is available
  [ableeb]


1.2.6 (2018-11-15)
------------------

- Fix use of optional dependency
  [vangheem]


1.2.5 (2018-11-13)
------------------

- Add support for Kafka
  [ableeb]

1.2.4 (unreleased)
------------------

- Add support for RabbitMQ
  [davidonna]


1.2.3 (2018-06-10)
------------------

- bump


1.2.2 (2018-05-06)
------------------

- Fix es when using 6
  [vangheem]


1.2.1 (2018-05-05)
------------------

- Fix Elasticsearch image
  [vangheem]


1.2.0 (2018-05-05)
------------------

- Be able to configure custom docker images
  [vangheem]

1.1.0 (2018-04-03)
------------------

- Add Elasticsearch fixture
  [vangheem]


1.0.1 (2018-03-12)
------------------

- release


1.0.0 (2018-03-12)
------------------

- initial release

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/guillotinaweb/pytest-docker-fixtures",
    "name": "pytest-docker-fixtures",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "pytest, fixtures, docker",
    "author": "Nathan Van Gheem",
    "author_email": "vangheem@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/66/6e/cc5395a86f5ef3b71f5bcfcc35cfce734d6010bcc7ea57fcfa704ee94df5/pytest-docker-fixtures-1.3.19.tar.gz",
    "platform": null,
    "description": "Introduction\n============\n\nProvide various service pytest fixtures.\n\n\nInstall\n-------\n\n`pip install pytest-docker-fixtures`\n\nUsages\n------\n\nIn your conftest.py, add the following: ::\n\n    pytest_plugins = ['pytest_docker_fixtures']\n\nAnd to use the fixtures: ::\n\n    def test_foobar(redis):\n        pass\n\n\nAvailable fixtures\n------------------\n\nPRs welcome!\n\n- cockroach (require to be installed with `pip install pytest-docker-fixtures[pg]`)\n- es (elasticsearch)\n- etcd\n- kafka (require to be installed with `pip install pytest-docker-fixtures[kafka]`)\n- memcached (require to be installed with `pip install pytest-docker-fixtures[memcached]`)\n- minio\n- mysql (require to be installed with `pip install pytest-docker-fixtures[mysql]`)\n- pg (require to be installed with `pip install pytest-docker-fixtures[pg]`)\n- rabbitmq (require to be installed with `pip install pytest-docker-fixtures[rabbitmq]`)\n- redis\n- stripe (stripemock)\n- emqx\n- influxdb\n\nConfiguring custom images\n-------------------------\n\nYou can also configure custom images to use::\n\n    from pytest_docker_fixtures import images\n    images.configure(\n        'elasticsearch',\n        'docker.elastic.co/elasticsearch/elasticsearch-platinum', '6.2.4',\n        env={},\n        options={}\n    )\n\n1.3.19 (2024-04-03)\n-------------------\n\n- Adding emqx fixture [nilbacardit26]\n- Adding influxdb fixture [nilbacardit26]\n\n1.3.18 (2023-11-17)\n-------------------\n\n- Remove container object after stopping it [sunbit]\n\n1.3.17 (2023-05-02)\n-------------------\n\n- Set docker api version to auto\n  [vangheem]\n\n\n1.3.16 (2023-03-24)\n-------------------\n\n- Use compatibile version of redis with arm support\n  [vangheem]\n\n1.3.15 (2022-11-17)\n-------------------\n\n- Set Redis image version to 6.2.6 for amd64 arch [albertnadal]\n\n\n1.3.14 (2022-07-06)\n-------------------\n\n- Add stripe/stripemock image [jotare]\n\n\n1.3.13 (2021-11-23)\n-------------------\n\n- Support for Apple Silicon images [bloodbare]\n\n\n1.3.12 (2021-08-30)\n-------------------\n\n- Add support for remote docker daemons [sunbit]\n\n\n1.3.11 (2020-09-30)\n-------------------\n\n- fix release\n\n1.3.10 (2020-09-30)\n-------------------\n\n- Add memcached docker image [lferran]\n\n\n1.3.9 (2020-07-10)\n------------------\n\n- Fix passing options to image configuration\n  [gitcarbs]\n\n\n1.3.8 (2020-07-02)\n------------------\n\n- Stop hardcoding db, user, and password in Postgresql.check()\n  [marshalium]\n\n\n1.3.7 (2020-05-04)\n------------------\n\n- Change psycopg2 dependency to psycopg2-binary\n\n\n1.3.6 (2020-02-14)\n------------------\n\n- Update to working postgres image after upstream 9.6 change\n\n\n1.3.5 (2019-10-01)\n------------------\n\n- minio: use random port (breaking change!)\n  [masipcat]\n\n\n1.3.4 (2019-09-04)\n------------------\n\n- Be able to override with env variables\n  [vangheem]\n\n\n1.3.3 (2019-08-14)\n------------------\n\n- Add support for MySQL\n  [masipcat]\n\n\n1.3.2 (2019-07-19)\n------------------\n\n- Fix: custom max_wait_s option should not be passed to docker images [lferran]\n\n1.3.1 (2019-07-19)\n------------------\n\n- Allow configuring time to wait for image to be setup [lferran]\n\n\n1.3.0 (2019-04-05)\n------------------\n\n- Be able to configure more of image\n  [vangheem]\n\n- Make sure ImportError is bubbled\n  [vangheem]\n\n\n1.2.10 (2019-02-28)\n-------------------\n\n- minio: configure a custom version of the image doesn't work\n  [masipcat]\n- minio: check() fails because Minio responds with status 403\n  [masipcat]\n\n\n1.2.9 (2019-01-09)\n------------------\n\n- Fix Minio returning port = None\n  [masipcat]\n\n\n1.2.8 (2019-01-03)\n------------------\n\n- Add support for Minio\n  [masipcat]\n\n\n1.2.7 (2018-11-19)\n------------------\n\n- ensure Kafka is available\n  [ableeb]\n\n\n1.2.6 (2018-11-15)\n------------------\n\n- Fix use of optional dependency\n  [vangheem]\n\n\n1.2.5 (2018-11-13)\n------------------\n\n- Add support for Kafka\n  [ableeb]\n\n1.2.4 (unreleased)\n------------------\n\n- Add support for RabbitMQ\n  [davidonna]\n\n\n1.2.3 (2018-06-10)\n------------------\n\n- bump\n\n\n1.2.2 (2018-05-06)\n------------------\n\n- Fix es when using 6\n  [vangheem]\n\n\n1.2.1 (2018-05-05)\n------------------\n\n- Fix Elasticsearch image\n  [vangheem]\n\n\n1.2.0 (2018-05-05)\n------------------\n\n- Be able to configure custom docker images\n  [vangheem]\n\n1.1.0 (2018-04-03)\n------------------\n\n- Add Elasticsearch fixture\n  [vangheem]\n\n\n1.0.1 (2018-03-12)\n------------------\n\n- release\n\n\n1.0.0 (2018-03-12)\n------------------\n\n- initial release\n",
    "bugtrack_url": null,
    "license": "BSD",
    "summary": "pytest docker fixtures",
    "version": "1.3.19",
    "project_urls": {
        "Homepage": "https://github.com/guillotinaweb/pytest-docker-fixtures"
    },
    "split_keywords": [
        "pytest",
        " fixtures",
        " docker"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "666ecc5395a86f5ef3b71f5bcfcc35cfce734d6010bcc7ea57fcfa704ee94df5",
                "md5": "5e5677740116f8e10eaa597f9305e21c",
                "sha256": "016578a1b6a4dfc81e5a09286230cb56e323bdfe3f4dda20a1e7bc2c74492f4a"
            },
            "downloads": -1,
            "filename": "pytest-docker-fixtures-1.3.19.tar.gz",
            "has_sig": false,
            "md5_digest": "5e5677740116f8e10eaa597f9305e21c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 10518,
            "upload_time": "2024-04-03T14:39:10",
            "upload_time_iso_8601": "2024-04-03T14:39:10.925677Z",
            "url": "https://files.pythonhosted.org/packages/66/6e/cc5395a86f5ef3b71f5bcfcc35cfce734d6010bcc7ea57fcfa704ee94df5/pytest-docker-fixtures-1.3.19.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-03 14:39:10",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "guillotinaweb",
    "github_project": "pytest-docker-fixtures",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pytest-docker-fixtures"
}
        
Elapsed time: 0.38386s