Hello community,

here is the log from the commit of package python-pytest-metadata for 
openSUSE:Factory checked in at 2020-05-19 14:47:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-metadata (Old)
 and      /work/SRC/openSUSE:Factory/.python-pytest-metadata.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pytest-metadata"

Tue May 19 14:47:25 2020 rev:3 rq:806846 version:1.9.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-pytest-metadata/python-pytest-metadata.changes
    2019-02-15 10:02:54.347616005 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-pytest-metadata.new.2738/python-pytest-metadata.changes
  2020-05-19 14:47:28.187940283 +0200
@@ -1,0 +2,6 @@
+Mon May 18 09:15:04 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- Update to 1.9.0:
+  * Add --metadata-from-json argument to support passing metadata as json.
+
+-------------------------------------------------------------------

Old:
----
  pytest-metadata-1.8.0.tar.gz

New:
----
  pytest-metadata-1.9.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pytest-metadata.spec ++++++
--- /var/tmp/diff_new_pack.UqOotN/_old  2020-05-19 14:47:29.563943222 +0200
+++ /var/tmp/diff_new_pack.UqOotN/_new  2020-05-19 14:47:29.567943231 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pytest-metadata
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,11 +18,10 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-pytest-metadata
-Version:        1.8.0
+Version:        1.9.0
 Release:        0
 Summary:        Pytest plugin for test session metadata
 License:        MPL-2.0
-Group:          Development/Languages/Python
 URL:            https://github.com/pytest-dev/pytest-metadata
 Source:         
https://files.pythonhosted.org/packages/source/p/pytest-metadata/pytest-metadata-%{version}.tar.gz
 BuildRequires:  %{python_module setuptools_scm}
@@ -50,7 +49,7 @@
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
-%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} 
py.test-%{$python_bin_suffix} -v
+%pytest
 
 %files %{python_files}
 %license LICENSE

++++++ pytest-metadata-1.8.0.tar.gz -> pytest-metadata-1.9.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-metadata-1.8.0/.gitignore 
new/pytest-metadata-1.9.0/.gitignore
--- old/pytest-metadata-1.8.0/.gitignore        2019-01-03 02:07:28.000000000 
+0100
+++ new/pytest-metadata-1.9.0/.gitignore        2020-05-05 12:12:40.000000000 
+0200
@@ -6,6 +6,7 @@
 .eggs
 .tox
 .idea
+.vscode/
 build
 dist
 Pipfile.lock
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-metadata-1.8.0/.pre-commit-config.yaml 
new/pytest-metadata-1.9.0/.pre-commit-config.yaml
--- old/pytest-metadata-1.8.0/.pre-commit-config.yaml   2019-01-03 
02:07:28.000000000 +0100
+++ new/pytest-metadata-1.9.0/.pre-commit-config.yaml   2020-05-05 
12:12:40.000000000 +0200
@@ -1,6 +1,15 @@
 repos:
--   repo: https://github.com/ambv/black
+
+-   repo: https://github.com/psf/black
     rev: stable
     hooks:
-    - id: black
-      language_version: python3
+    -   id: black
+        args: [--safe, --quiet]
+        language_version: python3
+
+-   repo: https://gitlab.com/pycqa/flake8
+    rev: 3.7.7
+    hooks:
+    -   id: flake8
+        exclude: docs
+        language_version: python3
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-metadata-1.8.0/.travis.yml 
new/pytest-metadata-1.9.0/.travis.yml
--- old/pytest-metadata-1.8.0/.travis.yml       2019-01-03 02:07:28.000000000 
+0100
+++ new/pytest-metadata-1.9.0/.travis.yml       2020-05-05 12:12:40.000000000 
+0200
@@ -1,32 +1,37 @@
 language: python
 jobs:
   include:
-    - stage:
-      python: 3.7
-      dist: xenial
-      sudo: required
-      env: TOXENV=flake8
-    - stage:
+    - stage: Tests
+      name: Linting
+      python: 3.8
+      env: TOXENV=linting
+
+    -
       python: 2.7
       env: TOXENV=py27
-    - stage:
+
+    -
       python: 3.6
       env: TOXENV=py36
-    - stage:
+
+    -
       python: 3.7
-      dist: xenial
-      sudo: required
       env: TOXENV=py37
-    - stage:
+
+    -
+      python: 3.8
+      env: TOXENV=py38
+
+    -
       python: pypy
       env: TOXENV=pypy
-    - stage:
+
+    -
       python: pypy3
       env: TOXENV=pypy3
+
     - stage: deploy
-      python: 3.7
-      dist: xenial
-      sudo: required
+      python: 3.8
       install: skip
       script: skip
       deploy:
@@ -38,7 +43,9 @@
         on:
           tags: true
           repo: pytest-dev/pytest-metadata
-cache:
-  pip: true
+
+cache: pip
+
 install: pip install tox
+
 script: tox
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-metadata-1.8.0/AUTHORS 
new/pytest-metadata-1.9.0/AUTHORS
--- old/pytest-metadata-1.8.0/AUTHORS   1970-01-01 01:00:00.000000000 +0100
+++ new/pytest-metadata-1.9.0/AUTHORS   2020-05-05 12:12:40.000000000 +0200
@@ -0,0 +1,7 @@
+Agustín Herranz
+Arminius (numirias)
+Dave Hunt
+Imran Mumtaz
+Jim Brännlund
+Sam Clements
+Tomas Krizek
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-metadata-1.8.0/CHANGES.rst 
new/pytest-metadata-1.9.0/CHANGES.rst
--- old/pytest-metadata-1.8.0/CHANGES.rst       2019-01-03 02:07:28.000000000 
+0100
+++ new/pytest-metadata-1.9.0/CHANGES.rst       2020-05-05 12:12:40.000000000 
+0200
@@ -1,6 +1,21 @@
 Release Notes
 -------------
 
+1.9.0 (2020-04-03)
+------------------
+
+* Add ``--metadata-from-json`` argument to support passing metadata as json.
+
+  * Thanks to `@ImXron <https://github.com/ImXron>`_ for the PR
+
+* Add support for python 3.8.
+
+  * Thanks to `@hugovk <https://github.com/hugovk>`_ for the PR
+
+* Remove always-masked GitLab environment variables.
+
+  * Thanks to `@borntyping <https://github.com/borntyping>`_ for the PR
+
 1.8.0 (2019-01-03)
 ------------------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-metadata-1.8.0/PKG-INFO 
new/pytest-metadata-1.9.0/PKG-INFO
--- old/pytest-metadata-1.8.0/PKG-INFO  2019-01-03 02:07:49.000000000 +0100
+++ new/pytest-metadata-1.9.0/PKG-INFO  2020-05-05 12:13:01.483746500 +0200
@@ -1,6 +1,6 @@
-Metadata-Version: 1.1
+Metadata-Version: 1.2
 Name: pytest-metadata
-Version: 1.8.0
+Version: 1.9.0
 Summary: pytest plugin for test session metadata
 Home-page: https://github.com/pytest-dev/pytest-metadata
 Author: Dave Hunt
@@ -33,9 +33,9 @@
         Requirements
         ------------
         
-        You will need the following prerequisites in order to use 
pytest-metadata:
+        You will need the following in order to use pytest-metadata:
         
-        - Python 2.7, 3.6, PyPy, or PyPy3
+        - Python 2.7, 3.6+, PyPy, or PyPy3
         
         Installation
         ------------
@@ -46,27 +46,12 @@
         
           $ pip install pytest-metadata
         
-        Development
-        -----------
-        
-        To contribute to pytest-metadata it helps to
-        have `Pipenv <https://pipenv.readthedocs.io/en/latest/>`_
-        and `pre-commit <https://pre-commit.com/>`_ installed.
-        
-        .. code-block:: bash
-        
-          $ pipenv install --dev
-          $ pre-commit install
-        
-        Running Tests
-        _____________
-        
-        We use `Tox <http://tox.testrun.org/>`_ to manage running tests
-        against the supported Python versions.
+        Contributing
+        ------------
         
-        .. code-block:: bash
+        We welcome contributions.
         
-          $ pipenv run tox
+        To learn more, see `Development 
<https://github.com/pytest-dev/pytest-metadata/blob/master/development.rst>`_
         
         Available metadata
         ------------------
@@ -93,6 +78,10 @@
         
            pytest --metadata foo bar --metadata baz zoo
         
+        There's also the possibility of passing in metadata as a JSON string::
+        
+            pytest --metadata-from-json '{"cat_says": "bring the cat nip", 
"human_says": "yes kitty"}'
+        
         Continuous integration
         ----------------------
         
@@ -187,6 +176,10 @@
 Classifier: Topic :: Software Development :: Testing
 Classifier: Topic :: Utilities
 Classifier: Programming Language :: Python
+Classifier: Programming Language :: Python :: 2
 Classifier: Programming Language :: Python :: 2.7
+Classifier: Programming Language :: Python :: 3
 Classifier: Programming Language :: Python :: 3.6
 Classifier: Programming Language :: Python :: 3.7
+Classifier: Programming Language :: Python :: 3.8
+Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-metadata-1.8.0/Pipfile 
new/pytest-metadata-1.9.0/Pipfile
--- old/pytest-metadata-1.8.0/Pipfile   2019-01-03 02:07:28.000000000 +0100
+++ new/pytest-metadata-1.9.0/Pipfile   2020-05-05 12:12:40.000000000 +0200
@@ -3,11 +3,12 @@
 verify_ssl = true
 name = "pypi"
 
-[packages]
-
 [dev-packages]
-black = "*"
-pytest-metadata = {editable = true, path = "."}
+pytest = "*"
 tox = "*"
+flake8 = "*"
+black = "*"
+pre-commit = "*"
 
-[requires]
+[packages]
+pytest-metadata = {editable = true,path = "."}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-metadata-1.8.0/README.rst 
new/pytest-metadata-1.9.0/README.rst
--- old/pytest-metadata-1.8.0/README.rst        2019-01-03 02:07:28.000000000 
+0100
+++ new/pytest-metadata-1.9.0/README.rst        2020-05-05 12:12:40.000000000 
+0200
@@ -25,9 +25,9 @@
 Requirements
 ------------
 
-You will need the following prerequisites in order to use pytest-metadata:
+You will need the following in order to use pytest-metadata:
 
-- Python 2.7, 3.6, PyPy, or PyPy3
+- Python 2.7, 3.6+, PyPy, or PyPy3
 
 Installation
 ------------
@@ -38,27 +38,12 @@
 
   $ pip install pytest-metadata
 
-Development
------------
-
-To contribute to pytest-metadata it helps to
-have `Pipenv <https://pipenv.readthedocs.io/en/latest/>`_
-and `pre-commit <https://pre-commit.com/>`_ installed.
-
-.. code-block:: bash
-
-  $ pipenv install --dev
-  $ pre-commit install
-
-Running Tests
-_____________
-
-We use `Tox <http://tox.testrun.org/>`_ to manage running tests
-against the supported Python versions.
+Contributing
+------------
 
-.. code-block:: bash
+We welcome contributions.
 
-  $ pipenv run tox
+To learn more, see `Development 
<https://github.com/pytest-dev/pytest-metadata/blob/master/development.rst>`_
 
 Available metadata
 ------------------
@@ -85,6 +70,10 @@
 
    pytest --metadata foo bar --metadata baz zoo
 
+There's also the possibility of passing in metadata as a JSON string::
+
+    pytest --metadata-from-json '{"cat_says": "bring the cat nip", 
"human_says": "yes kitty"}'
+
 Continuous integration
 ----------------------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-metadata-1.8.0/development.rst 
new/pytest-metadata-1.9.0/development.rst
--- old/pytest-metadata-1.8.0/development.rst   1970-01-01 01:00:00.000000000 
+0100
+++ new/pytest-metadata-1.9.0/development.rst   2020-05-05 12:12:40.000000000 
+0200
@@ -0,0 +1,70 @@
+Development
+===========
+
+To contribute to `pytest-metadata` you can use `Pipenv`_ to manage
+a python virtual environment and `pre-commit <https://pre-commit.com/>`_ to 
help you with
+styling and formatting.
+
+To setup the virtual environment and pre-commit, run:
+
+.. code-block:: bash
+
+  $ pipenv install --dev
+  $ pipenv run pre-commit install
+
+If you're not using `Pipenv`_, to install `pre-commit`, run:
+
+.. code-block:: bash
+
+  $ pip install pre-commit
+  $ pre-commit install
+
+
+Automated Testing
+-----------------
+
+All pull requests and merges are tested in `Travis CI 
<https://travis-ci.org/>`_
+based on the ``.travis.yml`` file.
+
+Usually, a link to your specific travis build appears in pull requests, but if
+not, you can find it on the
+`pull requests page 
<https://travis-ci.org/pytest-dev/pytest-metadata/pull_requests>`_
+
+The only way to trigger Travis CI to run again for a pull request, is to submit
+another change to the pull branch.
+
+You can do this with `git commit --allow-empty`
+
+Running Tests
+-------------
+
+You will need `Tox <http://tox.testrun.org/>`_ installed to run the tests
+against the supported Python versions. If you're using `Pipenv`_ it will be
+installed for you.
+
+With `Pipenv`_, run:
+
+.. code-block:: bash
+
+  $ pipenv run tox
+
+Otherwise, to install and run, do:
+
+.. code-block:: bash
+
+  $ pip install tox
+  $ tox
+
+Releasing a new version
+-----------------------
+
+Follow these steps to release a new version of the project:
+
+1. Update your local master with the upstream master (``git pull --rebase 
upstream master``)
+2. Create a new branch and update ``CHANGES.rst`` with the new version, 
today's date, and all changes/new features
+3. Commit and push the new branch and then create a new pull request
+4. Wait for tests and reviews and then merge the branch
+5. Once merged, update your local master again (``git pull --rebase upstream 
master``)
+6. Tag the release with the new release version (``git tag v<new tag>``)
+7. Push the tag (``git push upstream --tags``)
+8. Done. You can monitor the progress on `Travis 
<https://travis-ci.org/pytest-dev/pytest-metadata/>`_
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pytest-metadata-1.8.0/pytest_metadata/ci/gitlab_ci.py 
new/pytest-metadata-1.9.0/pytest_metadata/ci/gitlab_ci.py
--- old/pytest-metadata-1.8.0/pytest_metadata/ci/gitlab_ci.py   2019-01-03 
02:07:28.000000000 +0100
+++ new/pytest-metadata-1.9.0/pytest_metadata/ci/gitlab_ci.py   2020-05-05 
12:12:40.000000000 +0200
@@ -15,8 +15,6 @@
     "CI_JOB_MANUAL",
     "CI_JOB_NAME",
     "CI_JOB_STAGE",
-    "CI_JOB_TOKEN",
-    "CI_REPOSITORY_URL",
     "CI_RUNNER_DESCRIPTION",
     "CI_RUNNER_ID",
     "CI_RUNNER_TAGS",
@@ -30,7 +28,6 @@
     "CI_PROJECT_URL",
     "CI_REGISTRY",
     "CI_REGISTRY_IMAGE",
-    "CI_REGISTRY_PASSWORD",
     "CI_REGISTRY_USER",
     "CI_SERVER",
     "CI_SERVER_NAME",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-metadata-1.8.0/pytest_metadata/plugin.py 
new/pytest-metadata-1.9.0/pytest_metadata/plugin.py
--- old/pytest-metadata-1.8.0/pytest_metadata/plugin.py 2019-01-03 
02:07:28.000000000 +0100
+++ new/pytest-metadata-1.9.0/pytest_metadata/plugin.py 2020-05-05 
12:12:40.000000000 +0200
@@ -1,7 +1,7 @@
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
-
+import json
 import os
 import platform
 
@@ -55,6 +55,13 @@
         nargs=2,
         help="additional metadata.",
     )
+    parser.addoption(
+        "--metadata-from-json",
+        action="store",
+        default="{}",
+        dest="metadata_from_json",
+        help="additional metadata from a json string.",
+    )
 
 
 @pytest.hookimpl(tryfirst=True)
@@ -69,6 +76,7 @@
         },
     }
     config._metadata.update({k: v for k, v in config.getoption("metadata")})
+    config._metadata.update(json.loads(config.getoption("metadata_from_json")))
 
     plugins = dict()
     for plugin, dist in config.pluginmanager.list_plugin_distinfo():
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pytest-metadata-1.8.0/pytest_metadata.egg-info/PKG-INFO 
new/pytest-metadata-1.9.0/pytest_metadata.egg-info/PKG-INFO
--- old/pytest-metadata-1.8.0/pytest_metadata.egg-info/PKG-INFO 2019-01-03 
02:07:49.000000000 +0100
+++ new/pytest-metadata-1.9.0/pytest_metadata.egg-info/PKG-INFO 2020-05-05 
12:13:01.000000000 +0200
@@ -1,6 +1,6 @@
-Metadata-Version: 1.1
+Metadata-Version: 1.2
 Name: pytest-metadata
-Version: 1.8.0
+Version: 1.9.0
 Summary: pytest plugin for test session metadata
 Home-page: https://github.com/pytest-dev/pytest-metadata
 Author: Dave Hunt
@@ -33,9 +33,9 @@
         Requirements
         ------------
         
-        You will need the following prerequisites in order to use 
pytest-metadata:
+        You will need the following in order to use pytest-metadata:
         
-        - Python 2.7, 3.6, PyPy, or PyPy3
+        - Python 2.7, 3.6+, PyPy, or PyPy3
         
         Installation
         ------------
@@ -46,27 +46,12 @@
         
           $ pip install pytest-metadata
         
-        Development
-        -----------
-        
-        To contribute to pytest-metadata it helps to
-        have `Pipenv <https://pipenv.readthedocs.io/en/latest/>`_
-        and `pre-commit <https://pre-commit.com/>`_ installed.
-        
-        .. code-block:: bash
-        
-          $ pipenv install --dev
-          $ pre-commit install
-        
-        Running Tests
-        _____________
-        
-        We use `Tox <http://tox.testrun.org/>`_ to manage running tests
-        against the supported Python versions.
+        Contributing
+        ------------
         
-        .. code-block:: bash
+        We welcome contributions.
         
-          $ pipenv run tox
+        To learn more, see `Development 
<https://github.com/pytest-dev/pytest-metadata/blob/master/development.rst>`_
         
         Available metadata
         ------------------
@@ -93,6 +78,10 @@
         
            pytest --metadata foo bar --metadata baz zoo
         
+        There's also the possibility of passing in metadata as a JSON string::
+        
+            pytest --metadata-from-json '{"cat_says": "bring the cat nip", 
"human_says": "yes kitty"}'
+        
         Continuous integration
         ----------------------
         
@@ -187,6 +176,10 @@
 Classifier: Topic :: Software Development :: Testing
 Classifier: Topic :: Utilities
 Classifier: Programming Language :: Python
+Classifier: Programming Language :: Python :: 2
 Classifier: Programming Language :: Python :: 2.7
+Classifier: Programming Language :: Python :: 3
 Classifier: Programming Language :: Python :: 3.6
 Classifier: Programming Language :: Python :: 3.7
+Classifier: Programming Language :: Python :: 3.8
+Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pytest-metadata-1.8.0/pytest_metadata.egg-info/SOURCES.txt 
new/pytest-metadata-1.9.0/pytest_metadata.egg-info/SOURCES.txt
--- old/pytest-metadata-1.8.0/pytest_metadata.egg-info/SOURCES.txt      
2019-01-03 02:07:49.000000000 +0100
+++ new/pytest-metadata-1.9.0/pytest_metadata.egg-info/SOURCES.txt      
2020-05-05 12:13:01.000000000 +0200
@@ -1,10 +1,12 @@
 .gitignore
 .pre-commit-config.yaml
 .travis.yml
+AUTHORS
 CHANGES.rst
 LICENSE
 Pipfile
 README.rst
+development.rst
 setup.cfg
 setup.py
 tox.ini
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-metadata-1.8.0/setup.py 
new/pytest-metadata-1.9.0/setup.py
--- old/pytest-metadata-1.8.0/setup.py  2019-01-03 02:07:28.000000000 +0100
+++ new/pytest-metadata-1.9.0/setup.py  2020-05-05 12:12:40.000000000 +0200
@@ -14,6 +14,7 @@
     install_requires=["pytest>=2.9.0"],
     license="Mozilla Public License 2.0 (MPL 2.0)",
     keywords="py.test pytest metadata",
+    python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, 
!=3.5.*",
     classifiers=[
         "Development Status :: 5 - Production/Stable",
         "Framework :: Pytest",
@@ -26,8 +27,11 @@
         "Topic :: Software Development :: Testing",
         "Topic :: Utilities",
         "Programming Language :: Python",
+        "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",
     ],
 )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-metadata-1.8.0/tests/test_metadata.py 
new/pytest-metadata-1.9.0/tests/test_metadata.py
--- old/pytest-metadata-1.8.0/tests/test_metadata.py    2019-01-03 
02:07:28.000000000 +0100
+++ new/pytest-metadata-1.9.0/tests/test_metadata.py    2020-05-05 
12:12:40.000000000 +0200
@@ -44,6 +44,31 @@
     assert result.ret == 0
 
 
+def test_additional_metadata_from_json(testdir):
+    testdir.makepyfile(
+        """
+        def test_pass(metadata):
+            assert metadata.get('Imran') == 'Mumtaz'
+    """
+    )
+    result = testdir.runpytest("--metadata-from-json", '{"Imran": "Mumtaz"}')
+    assert result.ret == 0
+
+
+def test_additional_metadata_using_both_key_values_and_json(testdir):
+    testdir.makepyfile(
+        """
+        def test_pass(metadata):
+            assert metadata.get('John') == 'Cena'
+            assert metadata.get('Dwayne') == 'Johnson'
+    """
+    )
+    result = testdir.runpytest(
+        "--metadata", "John", "Cena", "--metadata-from-json", '{"Dwayne": 
"Johnson"}'
+    )
+    assert result.ret == 0
+
+
 def test_metadata_hook(testdir):
     testdir.makeconftest(
         """
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-metadata-1.8.0/tox.ini 
new/pytest-metadata-1.9.0/tox.ini
--- old/pytest-metadata-1.8.0/tox.ini   2019-01-03 02:07:28.000000000 +0100
+++ new/pytest-metadata-1.9.0/tox.ini   2020-05-05 12:12:40.000000000 +0200
@@ -1,13 +1,20 @@
 [tox]
-envlist = py{27,36,37,py,py3}, flake8
+envlist = py{27,36,37,38,py,py3}, linting
 
 [testenv]
+setenv = PYTHONDONTWRITEBYTECODE=1
 commands = pytest -v -r a {posargs}
 
-[testenv:flake8]
-skip_install = true
-deps = flake8
-commands = flake8 {posargs:.}
+[testenv:linting]
+skip_install = True
+basepython = python3
+deps = pre-commit
+commands = pre-commit run --all-files --show-diff-on-failure
 
 [flake8]
 max-line-length = 88
+exclude = .eggs,.tox
+
+[pytest]
+testpaths = tests
+markers = optionalhook


Reply via email to