A pytest plugin that enables you to test your code that relies on a running Elasticsearch search engine

Overview

https://raw.githubusercontent.com/ClearcodeHQ/pytest-elasticsearch/master/logo.png

pytest-elasticsearch

Latest PyPI version Wheel Status Supported Python Versions License

What is this?

This is a pytest plugin that enables you to test your code that relies on a running Elasticsearch search engine. It allows you to specify fixtures for Elasticsearch process and client.

How to use

Warning

This plugin requires at least version 5.0 of elasticsearch to work.

The plugin contains two fixtures:

  • elasticsearch - a client fixture that has functional scope, and which cleans Elasticsearch at the end of each test.
  • elasticsearch_proc - a session scoped fixture, that starts Elasticsearch instance at its first use and stops at the end of the tests.
  • elasticsearch_nooproc - a nooprocess fixture, that's holds connection data to already running elasticsearch

Simply include one of these fixtures into your tests fixture list.

You can also create additional elasticsearch client and process fixtures if you'd need to:

from pytest_elasticsearch import factories

elasticsearch_my_proc = factories.elasticsearch_proc(
    port=None, logsdir='/tmp')
elasticsearch_my = factories.elasticsearch('elasticsearch_my_proc')

Note

Each elasticsearch process fixture can be configured in a different way than the others through the fixture factory arguments.

Connecting to already existing Elasticsearch service

Some projects are using already running Elasticsearch servers (ie on docker instances). In order to connect to them, one would be using the elasticsearch_nooproc fixture.

es_external = factories.elasticsearch('elasticsearch_nooproc')

By default the elasticsearch_nooproc fixture would connect to elasticsearch instance using 9300 port.

Configuration

You can define your settings in three ways, it's fixture factory argument, command line option and pytest.ini configuration option. You can pick which you prefer, but remember that these settings are handled in the following order:

  1. Fixture factory argument
  2. Command line option
  3. Configuration option in your pytest.ini file
Configuration options
ElasticSearch option Fixture factory argument Command line option pytest.ini option Noop process fixture Default
Elasticsearch executable executable --elasticsearch-executable elasticsearch_executable   /usr/share/elasticsearch/bin/elasticsearch
logs directory logsdir --elasticsearch-logsdir elasticsearch_logsdir
$TMPDIR
host host --elasticsearch-host elasticsearch_host host 127.0.0.1
port port -elasticsearch-port elasticsearch_port 6300 random
Elasticsearch cluster name cluster_name --elasticsearch-cluster-name elasticsearch_cluster_name
elasticsearch_cluster_
index storage type index_store_type --elasticsearch-index-store-type elasticsearch_index_store_type
mmapfs
network publish host network_publish_host --elasticsearch-network-publish-host elasticsearch_network_publish_host
127.0.0.1
logs prefix logs_prefix --elasticsearch-logs-prefix elasticsearch_logs_prefix
 
transport tcp port transport_tcp_port --elasticsearch-transport-tcp-port elasticsearch_transport_tcp_port
random

Example usage:

  • pass it as an argument in your own fixture

    elasticsearch_proc = factories.elasticsearch_proc(
        cluster_name='awsome_cluster)
  • use --elasticsearch-logsdir command line option when you run your tests

    py.test tests --elasticsearch-cluster-name=awsome_cluster
    
  • specify your directory as elasticsearch_cluster_name in your pytest.ini file.

    To do so, put a line like the following under the [pytest] section of your pytest.ini:

    [pytest]
    elasticsearch_cluster_name = awsome_cluster

Known issues

It might happen, that the process can't be started due to lack of permissions. The files that user running tests has to have access to are:

  • /etc/default/elasticsearch

Make sure that you either run tests as a user that has access to these files, or you give user proper permissions or add it to proper user groups.

In CI at the moment, we install elasticsearch from tar/zip archives, which do not set up additional permission restrictions, so it's not a problem on the CI/CD.

Package resources

Comments
  • Permission Denied Creating 'elasticsearch_proc' instance

    Permission Denied Creating 'elasticsearch_proc' instance

    I am trying to set up an elasticsearch_proc instance to use for tests. I am receiving a subprocess.CalledProcessError when 'usr/share/elasticsearchbin/elasticsearch' is called in check_output. It looks like its due to a permission error. Do you have any configuration suggestions to make this work?

    import pytest
    from pytest_elasticsearch import factories
    
    es = factories.elasticsearch_proc(port=9200)
    es_client = factories.elasticsearch('es')
    
    class TestEs(object):
        def test_es(self, es, es_client):
            assert es.running == True
    

    Results

    venv/lib/python3.8/site-packages/pytest_elasticsearch/factories.py:112: 
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    venv/lib/python3.8/site-packages/pytest_elasticsearch/executor.py:66: in __init__
        self._exec_command(),
    venv/lib/python3.8/site-packages/pytest_elasticsearch/executor.py:113: in _exec_command
        if self.version < parse_version('5.0.0'):
    venv/lib/python3.8/site-packages/pytest_elasticsearch/executor.py:84: in version
        output = check_output([self.executable, '-Vv']).decode('utf-8')
    /usr/local/lib/python3.8/subprocess.py:411: in check_output
        return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    
    input = None, capture_output = False, timeout = None, check = True
    popenargs = (['/usr/share/elasticsearch/bin/elasticsearch', '-Vv'],)
    kwargs = {'stdout': -1}, process = <subprocess.Popen object at 0x7f7e7e96f700>
    stdout = b'', stderr = None, retcode = 1
    
        def run(*popenargs,
                input=None, capture_output=False, timeout=None, check=False, **kwargs):
            """Run command with arguments and return a CompletedProcess instance.
        
            The returned instance will have attributes args, returncode, stdout and
            stderr. By default, stdout and stderr are not captured, and those attributes
            will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them.
        
            If check is True and the exit code was non-zero, it raises a
            CalledProcessError. The CalledProcessError object will have the return code
            in the returncode attribute, and output & stderr attributes if those streams
            were captured.
        
            If timeout is given, and the process takes too long, a TimeoutExpired
            exception will be raised.
        
            There is an optional argument "input", allowing you to
            pass bytes or a string to the subprocess's stdin.  If you use this argument
            you may not also use the Popen constructor's "stdin" argument, as
            it will be used internally.
        
            By default, all communication is in bytes, and therefore any "input" should
            be bytes, and the stdout and stderr will be bytes. If in text mode, any
            "input" should be a string, and stdout and stderr will be strings decoded
            according to locale encoding, or by "encoding" if set. Text mode is
            triggered by setting any of text, encoding, errors or universal_newlines.
        
            The other arguments are the same as for the Popen constructor.
            """
            if input is not None:
                if kwargs.get('stdin') is not None:
                    raise ValueError('stdin and input arguments may not both be used.')
                kwargs['stdin'] = PIPE
        
            if capture_output:
                if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
                    raise ValueError('stdout and stderr arguments may not be used '
                                     'with capture_output.')
                kwargs['stdout'] = PIPE
                kwargs['stderr'] = PIPE
        
            with Popen(*popenargs, **kwargs) as process:
                try:
                    stdout, stderr = process.communicate(input, timeout=timeout)
                except TimeoutExpired as exc:
                    process.kill()
                    if _mswindows:
                        # Windows accumulates the output in a single blocking
                        # read() call run on child threads, with the timeout
                        # being done in a join() on those threads.  communicate()
                        # _after_ kill() is required to collect that and add it
                        # to the exception.
                        exc.stdout, exc.stderr = process.communicate()
                    else:
                        # POSIX _communicate already populated the output so
                        # far into the TimeoutExpired exception.
                        process.wait()
                    raise
                except:  # Including KeyboardInterrupt, communicate handled that.
                    process.kill()
                    # We don't call process.wait() as .__exit__ does that for us.
                    raise
                retcode = process.poll()
                if check and retcode:
    >               raise CalledProcessError(retcode, process.args,
                                             output=stdout, stderr=stderr)
    E               subprocess.CalledProcessError: Command '['/usr/share/elasticsearch/bin/elasticsearch', '-Vv']' returned non-zero exit status 1.
    
    /usr/local/lib/python3.8/subprocess.py:512: CalledProcessError
    ---------------------------- Captured stderr setup -----------------------------
    /usr/share/elasticsearch/bin/elasticsearch-env: line 81: /etc/default/elasticsearch: Permission denied
    ------------- generated xml file: /tmp/tmp-102560jGYtkaf6T9VL.xml --------------
    =========================== short test summary info ============================
    ERROR tests/unit/test_elasticsearch.py::TestEs::test_es - subprocess.CalledPr...
    =============================== 1 error in 0.28s ===============================
    
    
    help wanted question Accepting pull-requests 
    opened by dleister77 6
  • Bump pytest from 5.3.2 to 5.3.3

    Bump pytest from 5.3.2 to 5.3.3

    Bumps pytest from 5.3.2 to 5.3.3.

    Release notes

    Sourced from pytest's releases.

    5.3.3

    pytest 5.3.3 (2020-01-16)

    Bug Fixes

    • #2780: Captured output during teardown is shown with -rP.
    • #5971: Fix a pytest-xdist crash when dealing with exceptions raised in subprocesses created by the multiprocessing module.
    • #6436: FixtureDef <_pytest.fixtures.FixtureDef> objects now properly register their finalizers with autouse and parameterized fixtures that execute before them in the fixture stack so they are torn down at the right times, and in the right order.
    • #6532: Fix parsing of outcomes containing multiple errors with testdir results (regression in 5.3.0).

    Trivial/Internal Changes

    • #6350: Optimized automatic renaming of test parameter IDs.
    Changelog

    Sourced from pytest's changelog.

    Commits
    • 544b4a1 Fix Hugo van Kemenade name in release announcement
    • 56dc301 Preparing release version 5.3.3
    • aa05334 Remove broken link for user @jgsonesen
    • 4806878 Drop deploy from Travis in favor of GitHub actions (#6480)
    • d1d7e5d Drop deploy from Travis in favor of GitHub actions
    • 5b0e255 Merge pull request #6465 from blueyed/doc-rootdir
    • f0fdafe Merge pull request #6477 from blueyed/tests-cleanup-unused-fixtures
    • 5049e25 tests: cleanup unused fixtures
    • d36c712 Merge pull request #6479 from blueyed/tests-fix-master
    • 7a0d1b3 Use a dummy RemoteTraceback for test in Python 3.5 Windows
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.

    If all status checks pass Dependabot will automatically merge this pull request during working hours.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

    Additionally, you can set the following in the .dependabot/config.yml file in this repo:

    • Update frequency
    • Automerge options (never/patch/minor, and dev/runtime dependencies)
    • Out-of-range updates (receive only lockfile updates, if desired)
    • Security updates (receive only security updates, if desired)
    dependencies 
    opened by dependabot-preview[bot] 6
  • Bump elasticsearch from 7.8.1 to 7.9.0

    Bump elasticsearch from 7.8.1 to 7.9.0

    Bumps elasticsearch from 7.8.1 to 7.9.0.

    Changelog

    Sourced from elasticsearch's changelog.

    7.9.0 (2020-08-18)

    • Added support for ES 7.9 APIs
    • Fixed retries to not raise an error when sniff_on_connection_error=True and a TransportError is raised during the sniff step. Instead the retry will continue or the error that triggered the retry will be raised (See #1279 and #1326)
    Commits
    • 55915dc Release 7.9.0
    • af84f8a Update 7.9 APIs
    • 21a4a73 [7.9] Fix async URL in README.rst
    • 720f952 [7.9] Remove parameters from 'indices.data_streams_stats' API
    • ac3930f [7.9] Automatically retry 'docker pull' on CI
    • 9242f0c Release 7.9.0a1
    • 44bd75c [7.9] Don't raise sniffing errors when retrying a request
    • ca85460 [7.9] Add project_urls to setup.py
    • efcee36 Update APIs and docs links to Elasticsearch 7.9
    • 3945042 Create 7.9 branch
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.

    If all status checks pass Dependabot will automatically merge this pull request during working hours.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

    Additionally, you can set the following in the .dependabot/config.yml file in this repo:

    • Update frequency
    • Automerge options (never/patch/minor, and dev/runtime dependencies)
    • Out-of-range updates (receive only lockfile updates, if desired)
    • Security updates (receive only security updates, if desired)
    dependencies 
    opened by dependabot-preview[bot] 5
  • Bump pytest from 5.3.2 to 5.3.5

    Bump pytest from 5.3.2 to 5.3.5

    Bumps pytest from 5.3.2 to 5.3.5.

    Release notes

    Sourced from pytest's releases.

    5.3.5

    pytest 5.3.5 (2020-01-29)

    Bug Fixes

    • #6517: Fix regression in pytest 5.3.4 causing an INTERNALERROR due to a wrong assertion.

    5.3.4

    pytest 5.3.4 (2020-01-20)

    Bug Fixes

    • #6496: Revert #6436: unfortunately this change has caused a number of regressions in many suites, so the team decided to revert this change and make a new release while we continue to look for a solution.

    5.3.3

    pytest 5.3.3 (2020-01-16)

    Bug Fixes

    • #2780: Captured output during teardown is shown with -rP.
    • #5971: Fix a pytest-xdist crash when dealing with exceptions raised in subprocesses created by the multiprocessing module.
    • #6436: FixtureDef <_pytest.fixtures.FixtureDef> objects now properly register their finalizers with autouse and parameterized fixtures that execute before them in the fixture stack so they are torn down at the right times, and in the right order.
    • #6532: Fix parsing of outcomes containing multiple errors with testdir results (regression in 5.3.0).

    Trivial/Internal Changes

    • #6350: Optimized automatic renaming of test parameter IDs.
    ... (truncated)
    Changelog

    Sourced from pytest's changelog.

    Commits
    • fd1a51a Preparing release version 5.3.5
    • 499ac8e Revert "Fix type errors after adding types to the py dependency"
    • a6d5513 ci: codecov: only use "comment: off"
    • ce033be Update CI branch filters for new workflow
    • 6a26ac4 Preparing release version 5.3.4
    • cdaa9c0 Revert "fixtures register finalizers with all fixtures before t… (#6496)
    • 0dc82e8 Add CHANGELOG entry for #6496
    • f9bed82 Merge pull request #6515 from blueyed/tox-mypy-diff
    • 2406076 tox: add mypy-diff testenv
    • 44eb1f5 Merge pull request #6311 from bluetech/type-annotations-10
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.

    If all status checks pass Dependabot will automatically merge this pull request during working hours.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

    Additionally, you can set the following in the .dependabot/config.yml file in this repo:

    • Update frequency
    • Automerge options (never/patch/minor, and dev/runtime dependencies)
    • Out-of-range updates (receive only lockfile updates, if desired)
    • Security updates (receive only security updates, if desired)
    dependencies 
    opened by dependabot-preview[bot] 5
  • Bump mirakuru from 2.1.1 to 2.1.2

    Bump mirakuru from 2.1.1 to 2.1.2

    Bumps mirakuru from 2.1.1 to 2.1.2.

    Changelog

    Sourced from mirakuru's changelog.

    2.1.2

    • [bugfix][macos] Fixed typing issue on macOS
    Commits
    • 793cad2 "Release 2.1.2"
    • 3577e04 Merge pull request #374 from jharriman/jharriman/fix-type-annotation
    • 5bc259d Fix type annotation for Mac OS
    • 660474f Merge pull request #372 from ClearcodeHQ/dependabot/pip/coverage-5.0.2
    • cb721b6 Bump coverage from 5.0.1 to 5.0.2
    • be45e8a Merge pull request #371 from ClearcodeHQ/dependabot/pip/coverage-5.0.1
    • b5fff5a Bump coverage from 5.0 to 5.0.1
    • cd933cf Merge pull request #370 from ClearcodeHQ/dependabot/pip/mypy-0.761
    • c3495a2 Bump mypy from 0.760 to 0.761
    • 066b157 Merge pull request #369 from ClearcodeHQ/dependabot/pip/mypy-0.760
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.

    If all status checks pass Dependabot will automatically merge this pull request during working hours.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

    Additionally, you can set the following in the .dependabot/config.yml file in this repo:

    • Update frequency
    • Automerge options (never/patch/minor, and dev/runtime dependencies)
    • Out-of-range updates (receive only lockfile updates, if desired)
    • Security updates (receive only security updates, if desired)
    dependencies 
    opened by dependabot-preview[bot] 5
  • Pipe stderr to stdout to better display issues

    Pipe stderr to stdout to better display issues

    When using pytest-elasticsearch in a a docker image setting, I had multiple issues that could be solved much faster if the failing ES process' output was visible.

    In this PR I attempt to do so by piping stderr to stdout as (I think) stdout is already displayed on error.

    The issue was due to configurations in the image and I couldn't reproduce it locally.

    In my local testing, I've used the following sinppet in order to debug it:

    import subprocess
    raise Exception(subprocess.run(["/path/to/es/executable", "-Vv"], stderr=subprocess.STDOUT, check=False, stdout=subprocess.PIPE).stdout.decode("utf-8"))
    
    opened by TalAmuyal 4
  • Runtime Error - does not point to elasticsearch

    Runtime Error - does not point to elasticsearch

    I am testing using pytest-elastic search. This is my code structure

    from pytest_elasticsearch import factories
    
    elasticsearch_my_proc = factories.elasticsearch_proc(port=9600)
    elasticsearch_my = factories.elasticsearch('elasticsearch_my_proc')
    
    class TestSuccessResponses:
        def test_es(self, elasticsearch_my_proc):
            assert elasticsearch_my_proc.running == True```
    
    I am getting this error 
    ```                )
    E               RuntimeError: '/usr/share/elasticsearch/bin/elasticsearch' does not point to elasticsearch.
    
    venv/lib/python3.8/site-packages/pytest_elasticsearch/executor.py:101: RuntimeError
    =========================================================== short test summary info ===========================================================
    ERROR tests/test_es.py::TestSuccessResponses::test_es - RuntimeError: '/usr/share/elasticsearch/bin/elasticsearch' does not point to elastic... ```
    bug Accepting pull-requests 
    opened by ankitaghosh2492-developer 4
  • Bump pytest-xdist from 2.0.0 to 2.1.0

    Bump pytest-xdist from 2.0.0 to 2.1.0

    Bumps pytest-xdist from 2.0.0 to 2.1.0.

    Changelog

    Sourced from pytest-xdist's changelog.

    pytest-xdist 2.1.0 (2020-08-25)

    Features

    • #585: New pytest_xdist_auto_num_workers hook can be implemented by plugins or conftest.py files to control the number of workers when --numprocesses=auto is given in the command-line.

    Trivial Changes

    • #585: psutil has proven to make pytest-xdist installation in certain platforms and containers problematic, so to use it for automatic number of CPUs detection users need to install the psutil extra:

      pip install pytest-xdist[psutil]
      
    Commits
    • 5b7eeab Release 2.1.0
    • 9fd3b66 Merge pull request #590 from nicoddemus/auto-hook
    • fe48256 Remove universal wheel setting: pytest-xdist is Python 3 only
    • 607d828 Add psutil extra and introduce pytest_xdist_auto_num_workers hook
    • e469fc7 Revert "Merge pull request #560 from utapyngo/logical-cpu-count"
    • 7caf743 Merge pull request #588 from pelmini/fix_readme
    • 457386f Fixed typo in README
    • 1d08799 Merge pull request #582 from nicoddemus/fix-docs
    • ac5b995 Fix session-scoped fixtures example in README
    • 995b34a Merge pull request #575 from nicoddemus/release-2.0.0
    • See full diff in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.

    If all status checks pass Dependabot will automatically merge this pull request during working hours.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

    Additionally, you can set the following in the .dependabot/config.yml file in this repo:

    • Update frequency
    • Automerge options (never/patch/minor, and dev/runtime dependencies)
    • Out-of-range updates (receive only lockfile updates, if desired)
    • Security updates (receive only security updates, if desired)
    dependencies 
    opened by dependabot-preview[bot] 4
  • Bump pydocstyle from 5.0.2 to 5.1.0

    Bump pydocstyle from 5.0.2 to 5.1.0

    Bumps pydocstyle from 5.0.2 to 5.1.0.

    Changelog

    Sourced from pydocstyle's changelog.

    5.1.0 - August 22nd, 2020

    New Features

    • Skip function arguments prefixed with _ in D417 check (#440).

    Bug Fixes

    • Update convention support documentation (#386, #393)
    • Detect inner asynchronous functions for D202 (#467)
    • Fix indentation error while parsing class methods (#441).
    • Fix a bug in parsing Google-style argument description. The bug caused some argument names to go unreported in D417 (#448).
    • Fixed an issue where skipping errors on module level docstring via #noqa failed when there where more prior comments (#446).
    • Support backslash-continued descriptions in docstrings (#472).
    • Correctly detect publicity of modules inside directories (#470, #494).
    Commits
    • d30ceea Bump version: 5.1.0rc → 5.1.0
    • f9e906c Bump version: 5.0.3rc → 5.1.0rc
    • 561cf59 Update release notes
    • 2aa3aa7 Correctly detect publicity of modules inside directories (#494)
    • b0f7d62 Fix handling of dedented continuation lines. (#472)
    • 6df2581 Use Github Actions for testing (#492)
    • 2dfbb38 Bugfix: Allow comments before module docstring noqa codes (#446)
    • dd5ab9e Fix indentation error while parsing class methods (#441)
    • 75dabda Added updated link to pydocstyle’s documentation (#489)
    • 9429e2f Fix exception cause in config.py (#488)
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.

    If all status checks pass Dependabot will automatically merge this pull request during working hours.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

    Additionally, you can set the following in the .dependabot/config.yml file in this repo:

    • Update frequency
    • Automerge options (never/patch/minor, and dev/runtime dependencies)
    • Out-of-range updates (receive only lockfile updates, if desired)
    • Security updates (receive only security updates, if desired)
    dependencies 
    opened by dependabot-preview[bot] 4
  • Bump pylint from 2.5.3 to 2.6.0

    Bump pylint from 2.5.3 to 2.6.0

    Bumps pylint from 2.5.3 to 2.6.0.

    Changelog

    Sourced from pylint's changelog.

    What's New in Pylint 2.6.0?

    Release date: 2020-08-20

    • Fix various scope-related bugs in undefined-variable checker

      Close #1082, #3434, #3461

    • bad-continuation and bad-whitespace have been removed, black or another formatter can help you with this better than Pylint

      Close #246, #289, #638, #747, #1148, #1179, #1943, #2041, #2301, #2304, #2944, #3565

    • The no-space-check option has been removed. It's no longer possible to consider empty line like a trailing-whitespace by using clever options

      Close #1368

    • missing-kwoa is no longer emitted when dealing with overload functions

      Close #3655

    • mixed-indentation has been removed, it is no longer useful since TabError is included directly in python3

      Close #2984 #3573

    • Add super-with-arguments check for flagging instances of Python 2 style super calls.

    • Add an faq detailing which messages to disable to avoid duplicates w/ other popular linters

    • Fix superfluous-parens false-positive for the walrus operator

      Close #3383

    • Fix fail-under not accepting floats

    • Fix a bug with ignore-docstrings ignoring all lines in a module

    • Fix pre-commit config that could lead to undetected duplicate lines of code

    • Fix a crash in parallel mode when the module's filepath is not set

      Close #3564

    • Add raise-missing-from check for exceptions that should have a cause.

    • Support both isort 4 and isort 5. If you have pinned isort 4 in your projet requirements, nothing changes. If you use isort 5, though, note that the known-standard-library option is not interpreted the same in isort 4 and isort 5 (see the migration guide in isort documentation for further details). For compatibility's sake for most pylint users, the known-standard-library option in pylint now maps to extra-standard-library in isort 5. If you really want what known-standard-library now means in isort 5, you must disable the wrong-import-order check in pylint and run isort manually with a proper isort configuration file.

      Close #3722

    Commits
    • 8197144 Merge pull request #3784 from PyCQA/2.6
    • 2d1f962 Corrects syntax error that prevent upload to pypi
    • 5071831 Merge pull request #3783 from PyCQA/2.6
    • 1f7c29c Sets up copyright
    • ef58e02 Set the version number
    • 4582a4b Set the release date
    • 52fd8e1 tox: Don't mention isort in dependencies
    • 89f1a6f Switch to isort 5 for pylint's own code
    • 9bc9bdf Support both isort 4 and isort 5
    • 707fc46 Add missing test dependency pytest-benchmark to setup.py
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.

    If all status checks pass Dependabot will automatically merge this pull request during working hours.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

    Additionally, you can set the following in the .dependabot/config.yml file in this repo:

    • Update frequency
    • Automerge options (never/patch/minor, and dev/runtime dependencies)
    • Out-of-range updates (receive only lockfile updates, if desired)
    • Security updates (receive only security updates, if desired)
    dependencies 
    opened by dependabot-preview[bot] 4
  • Bump pytest-xdist from 1.32.0 to 1.33.0

    Bump pytest-xdist from 1.32.0 to 1.33.0

    Bumps pytest-xdist from 1.32.0 to 1.33.0.

    Changelog

    Sourced from pytest-xdist's changelog.

    pytest-xdist 1.33.0 (2020-07-09)

    Features

    • #554: Fix warnings support for upcoming pytest 6.0.

    Trivial Changes

    • #548: SCM and CI files are no longer included in the source distribution.
    Commits
    • 7396ffb Release 1.33.0
    • fbfe3b9 Add missing changelog for #548
    • 075a742 Add missing changelog for #554
    • b8e1e63 Merge pull request #554 from nicoddemus/fix-compat-pytest-master
    • bc0866f Merge pull request #548 from swt2c/exclude_scm_ci_files
    • b257571 Support new pytest_warning_recorded hook from pytest 6.0
    • 77a1db2 Fix compatibility with pytest master
    • f502131 Merge pull request #545 from lgeiger/list-comprehensions
    • 925829c Exclude SCM and CI files from distribution
    • 311cbfa Prefer list comprehensions over list.append()
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.

    If all status checks pass Dependabot will automatically merge this pull request during working hours.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

    Additionally, you can set the following in the .dependabot/config.yml file in this repo:

    • Update frequency
    • Automerge options (never/patch/minor, and dev/runtime dependencies)
    • Out-of-range updates (receive only lockfile updates, if desired)
    • Security updates (receive only security updates, if desired)
    dependencies 
    opened by dependabot-preview[bot] 4
  • Bump pydocstyle from 6.1.1 to 6.2.2

    Bump pydocstyle from 6.1.1 to 6.2.2

    Bumps pydocstyle from 6.1.1 to 6.2.2.

    Release notes

    Sourced from pydocstyle's releases.

    6.2.2

    What's Changed

    New Contributors

    Full Changelog: https://github.com/PyCQA/pydocstyle/compare/6.2.1...6.2.2

    6.2.1

    What's Changed

    New Contributors

    Full Changelog: https://github.com/PyCQA/pydocstyle/compare/6.2.0...6.2.1

    6.2.0

    What's Changed

    New Contributors

    ... (truncated)

    Changelog

    Sourced from pydocstyle's changelog.

    6.2.2 - January 3rd, 2023

    Bug Fixes

    • Fix false positives of D417 in google convention docstrings (#619).

    6.2.1 - January 3rd, 2023

    Bug Fixes

    • Use tomllib/tomli to correctly read .toml files (#599, #600).

    6.2.0 - January 2nd, 2023

    New Features

    • Allow for hanging indent when documenting args in Google style. (#449)
    • Add support for property_decorators config to ignore D401.
    • Add support for Python 3.10 (#554).
    • Replace D10X errors with D419 if docstring exists but is empty (#559).

    Bug Fixes

    • Fix --match option to only consider filename when matching full paths (#550).
    Commits
    • bd294bb Cut 6.2.2
    • 0107fe6 Fix false positive of google convention missing args descriptions (#619)
    • 45fbcc1 Cut a 6.2.1 release
    • 671329e Docs: pydocstyle supports Python 3.7 through 3.11. (#616)
    • 3bc3b87 Use tomllib/tomli for reading .toml configs (#608)
    • 5c55802 requirements/docs.txt: Use current versions of Jinja2 and sphinx (#615)
    • f4db095 Add Python 3.11 to the testing matrix (#612)
    • 447af8f Add https protocol on websites at the README.rst (#611)
    • 05b92ba Add testpypi to poetry repositories
    • 7007961 Move to poetry and automated relases via Github UI (#614)
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies python 
    opened by dependabot[bot] 1
  • Bump coverage from 6.5.0 to 7.0.3

    Bump coverage from 6.5.0 to 7.0.3

    Bumps coverage from 6.5.0 to 7.0.3.

    Changelog

    Sourced from coverage's changelog.

    Version 7.0.3 — 2023-01-03

    • Fix: when using pytest-cov or pytest-xdist, or perhaps both, the combining step could fail with assert row is not None using 7.0.2. This was due to a race condition that has always been possible and is still possible. In 7.0.1 and before, the error was silently swallowed by the combining code. Now it will produce a message "Couldn't combine data file" and ignore the data file as it used to do before 7.0.2. Closes issue 1522_.

    .. _issue 1522: nedbat/coveragepy#1522

    .. _changes_7-0-2:

    Version 7.0.2 — 2023-01-02

    • Fix: when using the [run] relative_files = True setting, a relative [paths] pattern was still being made absolute. This is now fixed, closing issue 1519_.

    • Fix: if Python doesn't provide tomllib, then TOML configuration files can only be read if coverage.py is installed with the [toml] extra. Coverage.py will raise an error if TOML support is not installed when it sees your settings are in a .toml file. But it didn't understand that [tools.coverage] was a valid section header, so the error wasn't reported if you used that header, and settings were silently ignored. This is now fixed, closing issue 1516_.

    • Fix: adjusted how decorators are traced on PyPy 7.3.10, fixing issue 1515_.

    • Fix: the coverage lcov report did not properly implement the --fail-under=MIN option. This has been fixed.

    • Refactor: added many type annotations, including a number of refactorings. This should not affect outward behavior, but they were a bit invasive in some places, so keep your eyes peeled for oddities.

    • Refactor: removed the vestigial and long untested support for Jython and IronPython.

    .. _issue 1515: nedbat/coveragepy#1515 .. _issue 1516: nedbat/coveragepy#1516 .. _issue 1519: nedbat/coveragepy#1519

    .. _changes_7-0-1:

    Version 7.0.1 — 2022-12-23

    ... (truncated)

    Commits
    • 2ff9098 docs: prep for 7.0.3
    • 1f34d8b fix: race condition on data file shouldn't break combining. #1522
    • 85170bf build: two-step combines for speed
    • 1605f07 mypy: misc.py, test_misc.py
    • 4f3ccf2 refactor: a better way to have maybe-importable third-party modules
    • 98301ed mypy: test_config.py, test_context.py
    • 9d2e1b0 mypy: test_concurrency.py, test_python.py
    • c3ee30c refactor(test): use tmp_path instead of tmpdir
    • 0b05b45 mypy: test_annotate.py test_arcs.py test_collector.py
    • 2090f79 style: better
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies python 
    opened by dependabot[bot] 1
  • Bump mock from 4.0.3 to 5.0.0

    Bump mock from 4.0.3 to 5.0.0

    Bumps mock from 4.0.3 to 5.0.0.

    Changelog

    Sourced from mock's changelog.

    5.0.0

    • gh-98624: Add a mutex to unittest.mock.NonCallableMock to protect concurrent access to mock attributes.

    • bpo-43478: Mocks can no longer be used as the specs for other Mocks. As a result, an already-mocked object cannot have an attribute mocked using autospec=True or be the subject of a create_autospec(...) call. This can uncover bugs in tests since these Mock-derived Mocks will always pass certain tests (e.g. isinstance) and builtin assert functions (e.g. assert_called_once_with) will unconditionally pass.

    • bpo-45156: Fixes infinite loop on :func:unittest.mock.seal of mocks created by :func:~unittest.create_autospec.

    • bpo-41403: Make :meth:mock.patch raise a :exc:TypeError with a relevant error message on invalid arg. Previously it allowed a cryptic :exc:AttributeError to escape.

    • gh-91803: Fix an error when using a method of objects mocked with :func:unittest.mock.create_autospec after it was sealed with :func:unittest.mock.seal function.

    • bpo-41877: AttributeError for suspected misspellings of assertions on mocks are now pointing out that the cause are misspelled assertions and also what to do if the misspelling is actually an intended attribute name. The unittest.mock document is also updated to reflect the current set of recognised misspellings.

    • bpo-43478: Mocks can no longer be provided as the specs for other Mocks. As a result, an already-mocked object cannot be passed to mock.Mock(). This can uncover bugs in tests since these Mock-derived Mocks will always pass certain tests (e.g. isinstance) and builtin assert functions (e.g. assert_called_once_with) will unconditionally pass.

    • bpo-45010: Remove support of special method __div__ in :mod:unittest.mock. It is not used in Python 3.

    • gh-84753: :func:inspect.iscoroutinefunction now properly returns True when an instance of :class:unittest.mock.AsyncMock is passed to it. This makes it consistent with behavior of :func:asyncio.iscoroutinefunction. Patch by Mehdi ABAAKOUK.

    • bpo-46852: Remove the undocumented private float.__set_format__() method, previously known as float.__setformat__() in Python 3.7. Its docstring said: "You probably don't want to use this function. It exists mainly to be used in Python's test suite." Patch by Victor Stinner.

    • gh-98086: Make sure patch.dict() can be applied on async functions.

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies python 
    opened by dependabot[bot] 1
  • Bump port-for from 0.6.2 to 0.6.3

    Bump port-for from 0.6.2 to 0.6.3

    Bumps port-for from 0.6.2 to 0.6.3.

    Changelog

    Sourced from port-for's changelog.

    0.6.3 (2022-12-15)

    Features

    • Add python 3.11 to the list of supported python versions. ([#111](https://github.com/kmike/port-for/issues/111) <https://https://github.com/kmike/port-for/issues/111>_)

    Miscellaneus

    • Use towncrier as a changelog management tool. ([#107](https://github.com/kmike/port-for/issues/107) <https://https://github.com/kmike/port-for/issues/107>_)
    • Moved development dependencies to be managed by pipenv. All development process can be managed with it - which means automatic isolation. ([#108](https://github.com/kmike/port-for/issues/108) <https://https://github.com/kmike/port-for/issues/108>_)
    • Migrate versioning tool to tbump, and move package definition to pyproject.toml ([#109](https://github.com/kmike/port-for/issues/109) <https://https://github.com/kmike/port-for/issues/109>_)
    • Moved as much of the setup.cfg settings into the pyproject.toml as possible. Dropped pydocstyle support. ([#112](https://github.com/kmike/port-for/issues/112) <https://https://github.com/kmike/port-for/issues/112>_)
    Commits
    • 64d72bc Release 0.6.3
    • 75c9c50 Merge pull request #112 from kmike/pyproject
    • 0c4a501 Move as much setup.cfg to pyproject.toml as possible
    • 57d82c1 Merge pull request #111 from kmike/py311
    • 30dbb7c Add Python 3.11 to the trove classifiers and CI
    • 162fbf6 Merge pull request #109 from kmike/tbump
    • ec2f107 Migrate versioning tool to tbump, and most of setup.cfg into pyproject.toml
    • 66de07d Merge pull request #110 from kmike/dependabot/pip/pycodestyle-2.10.0
    • 29c985c Bump pycodestyle from 2.9.1 to 2.10.0
    • 80c3302 Merge pull request #106 from kmike/dependabot/pip/black-22.12.0
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies python 
    opened by dependabot[bot] 1
  • Bump black from 22.10.0 to 22.12.0

    Bump black from 22.10.0 to 22.12.0

    Bumps black from 22.10.0 to 22.12.0.

    Release notes

    Sourced from black's releases.

    22.12.0

    Preview style

    • Enforce empty lines before classes and functions with sticky leading comments (#3302)
    • Reformat empty and whitespace-only files as either an empty file (if no newline is present) or as a single newline character (if a newline is present) (#3348)
    • Implicitly concatenated strings used as function args are now wrapped inside parentheses (#3307)
    • Correctly handle trailing commas that are inside a line's leading non-nested parens (#3370)

    Configuration

    • Fix incorrectly applied .gitignore rules by considering the .gitignore location and the relative path to the target file (#3338)
    • Fix incorrectly ignoring .gitignore presence when more than one source directory is specified (#3336)

    Parser

    • Parsing support has been added for walruses inside generator expression that are passed as function args (for example, any(match := my_re.match(text) for text in texts)) (#3327).

    Integrations

    • Vim plugin: Optionally allow using the system installation of Black via let g:black_use_virtualenv = 0(#3309)
    Changelog

    Sourced from black's changelog.

    22.12.0

    Preview style

    • Enforce empty lines before classes and functions with sticky leading comments (#3302)
    • Reformat empty and whitespace-only files as either an empty file (if no newline is present) or as a single newline character (if a newline is present) (#3348)
    • Implicitly concatenated strings used as function args are now wrapped inside parentheses (#3307)
    • Correctly handle trailing commas that are inside a line's leading non-nested parens (#3370)

    Configuration

    • Fix incorrectly applied .gitignore rules by considering the .gitignore location and the relative path to the target file (#3338)
    • Fix incorrectly ignoring .gitignore presence when more than one source directory is specified (#3336)

    Parser

    • Parsing support has been added for walruses inside generator expression that are passed as function args (for example, any(match := my_re.match(text) for text in texts)) (#3327).

    Integrations

    • Vim plugin: Optionally allow using the system installation of Black via let g:black_use_virtualenv = 0(#3309)
    Commits
    • 2ddea29 Prepare release 22.12.0 (#3413)
    • 5b1443a release: skip bad macos wheels for now (#3411)
    • 9ace064 Bump peter-evans/find-comment from 2.0.1 to 2.1.0 (#3404)
    • 19c5fe4 Fix CI with latest flake8-bugbear (#3412)
    • d4a8564 Bump sphinx-copybutton from 0.5.0 to 0.5.1 in /docs (#3390)
    • 2793249 Wordsmith current_style.md (#3383)
    • d97b789 Remove whitespaces of whitespace-only files (#3348)
    • c23a5c1 Clarify that Black runs with --safe by default (#3378)
    • 8091b25 Correctly handle trailing commas that are inside a line's leading non-nested ...
    • ffaaf48 Compare each .gitignore found with an appropiate relative path (#3338)
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies python 
    opened by dependabot[bot] 1
  • Bump elasticsearch from 7.17.0 to 8.5.3

    Bump elasticsearch from 7.17.0 to 8.5.3

    Bumps elasticsearch from 7.17.0 to 8.5.3.

    Release notes

    Sourced from elasticsearch's releases.

    8.5.3

    • Client is compatible with Elasticsearch 8.5.3

    8.5.2

    • Client is compatible with Elasticsearch 8.5.2

    8.5.1

    • Client is compatible with Elasticsearch 8.5.1

    8.5.0

    Indices

    • Added the experimental indices.downsample API.

    Rollup

    • Removed the deprecated rollup.rollup API.

    Snapshot

    • Added the index_names parameter to the snapshot.get API.

    Machine Learning

    • Added the beta ml.clear_trained_model_deployment_cache API.
    • Changed the ml.put_trained_model_definition_part API from experimental to stable.
    • Changed the ml.put_trained_model_vocabulary API from experimental to stable.
    • Changed the ml.start_trained_model_deployment API from experimental to stable.
    • Changed the ml.stop_trained_model_deployment API from experimental to stable.

    Security

    • Added the with_limited_by parameter to the get_api_key API.
    • Added the with_limited_by parameter to the query_api_keys API.
    • Added the with_profile_uid parameter to the get_user API.
    • Changed the security.activate_user_profile API from beta to stable.
    • Changed the security.disable_user_profile API from beta to stable.
    • Changed the security.enable_user_profile API from beta to stable.
    • Changed the security.get_user_profile API from beta to stable.
    • Changed the security.suggest_user_profiles API from beta to stable.
    • Changed the security.update_user_profile_data API from beta to stable.
    • Changed the security.has_privileges_user_profile API from experimental to stable.

    8.4.3

    • Client is compatible with Elasticsearch 8.4.3

    8.4.2

    Documents

    • Added the error_trace, filter_path, human and pretty parameters to the get_source API.
    • Added the ext parameter to the search API.

    Async Search

    • Added the ext parameter to the async_search.submit API.

    Fleet

    • Added the ext parameter to the fleet.search API.

    8.4.1

    • Client is compatible with Elasticsearch 8.4.1

    8.4.0

    ... (truncated)

    Commits
    • 14fcea0 Bumps 8.5 to 8.5.3
    • adc3f00 [8.5] add release notes for 8.5.1
    • 2b3d6c5 [8.5] Upgrade actions/checkout to v3
    • 1e4e2e8 Revert "Skip mypy type checking for 8.5 branch temporarily"
    • 03e16d8 Skip mypy type checking for 8.5 branch temporarily
    • e91647a Bumps 8.5 to 8.5.2
    • fd310bf Add release notes for 8.5.0
    • 1d1b312 Bumps 8.5 to 8.5.1
    • a9bbab7 Update APIs for 8.5-SNAPSHOT
    • 8896e5b update APIs to main
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies python 
    opened by dependabot[bot] 0
Owner
Clearcode
Software house with a passion for technology. We specialize in building enterprise-grade adtech, martech and analytics platforms.
Clearcode
This is a pytest plugin, that enables you to test your code that relies on a running MongoDB database

This is a pytest plugin, that enables you to test your code that relies on a running MongoDB database. It allows you to specify fixtures for MongoDB process and client.

Clearcode 19 Oct 21, 2022
pytest plugin providing a function to check if pytest is running.

pytest-is-running pytest plugin providing a function to check if pytest is running. Installation Install with: python -m pip install pytest-is-running

Adam Johnson 21 Nov 1, 2022
Pytest-typechecker - Pytest plugin to test how type checkers respond to code

pytest-typechecker this is a plugin for pytest that allows you to create tests t

vivax 2 Aug 20, 2022
A pytest plugin to run an ansible collection's unit tests with pytest.

pytest-ansible-units An experimental pytest plugin to run an ansible collection's unit tests with pytest. Description pytest-ansible-units is a pytest

Community managed Ansible repositories 9 Dec 9, 2022
pytest plugin that let you automate actions and assertions with test metrics reporting executing plain YAML files

pytest-play pytest-play is a codeless, generic, pluggable and extensible automation tool, not necessarily test automation only, based on the fantastic

pytest-dev 67 Dec 1, 2022
pytest plugin for manipulating test data directories and files

pytest-datadir pytest plugin for manipulating test data directories and files. Usage pytest-datadir will look up for a directory with the name of your

Gabriel Reis 191 Dec 21, 2022
pytest plugin for a better developer experience when working with the PyTorch test suite

pytest-pytorch What is it? pytest-pytorch is a lightweight pytest-plugin that enhances the developer experience when working with the PyTorch test sui

Quansight 39 Nov 18, 2022
ApiPy was created for api testing with Python pytest framework which has also requests, assertpy and pytest-html-reporter libraries.

ApiPy was created for api testing with Python pytest framework which has also requests, assertpy and pytest-html-reporter libraries. With this f

Mustafa 1 Jul 11, 2022
Playwright Python tool practice pytest pytest-bdd screen-play page-object allure cucumber-report

pytest-ui-automatic Playwright Python tool practice pytest pytest-bdd screen-play page-object allure cucumber-report How to run Run tests execute_test

moyu6027 11 Nov 8, 2022
Pytest-rich - Pytest + rich integration (proof of concept)

pytest-rich Leverage rich for richer test session output. This plugin is not pub

Bruno Oliveira 170 Dec 2, 2022
Set your Dynaconf environment to testing when running pytest

pytest-dynaconf Set your Dynaconf environment to testing when running pytest. Installation You can install "pytest-dynaconf" via pip from PyPI: $ pip

David Baumgold 3 Mar 11, 2022
a plugin for py.test that changes the default look and feel of py.test (e.g. progressbar, show tests that fail instantly)

pytest-sugar pytest-sugar is a plugin for pytest that shows failures and errors instantly and shows a progress bar. Requirements You will need the fol

Teemu 963 Dec 28, 2022
A set of pytest fixtures to test Flask applications

pytest-flask An extension of pytest test runner which provides a set of useful tools to simplify testing and development of the Flask extensions and a

pytest-dev 433 Dec 23, 2022
Selects tests affected by changed files. Continous test runner when used with pytest-watch.

This is a pytest plug-in which automatically selects and re-executes only tests affected by recent changes. How is this possible in dynamic language l

Tibor Arpas 614 Dec 30, 2022
Local continuous test runner with pytest and watchdog.

pytest-watch -- Continuous pytest runner pytest-watch a zero-config CLI tool that runs pytest, and re-runs it when a file in your project changes. It

Joe Esposito 675 Dec 23, 2022
A set of pytest fixtures to test Flask applications

pytest-flask An extension of pytest test runner which provides a set of useful tools to simplify testing and development of the Flask extensions and a

pytest-dev 354 Feb 17, 2021
API Test Automation with Requests and Pytest

api-testing-requests-pytest Install Make sure you have Python 3 installed on your machine. Then: 1.Install pipenv sudo apt-get install pipenv 2.Go to

Sulaiman Haque 2 Nov 21, 2021
a wrapper around pytest for executing tests to look for test flakiness and runtime regression

bubblewrap a wrapper around pytest for assessing flakiness and runtime regressions a cs implementations practice project How to Run: First, install de

Anna Nagy 1 Aug 5, 2021
Front End Test Automation with Pytest Framework

Front End Test Automation Framework with Pytest Installation and running instructions: 1. To install the framework on your local machine: clone the re

Sergey Kolokolov 2 Jun 17, 2022