New Upstream Snapshot - python-pytest-lazy-fixture

Ready changes

Summary

Merged new upstream version: 0.6.3+git20220127.1.18ec85e (was: 0.6.3).

Resulting package

Built on 2022-10-21T20:08 (took 6m31s)

The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:

apt install -t fresh-snapshots python3-pytest-lazy-fixture

Lintian Result

Diff

diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index cf33286..0000000
--- a/.gitignore
+++ /dev/null
@@ -1,70 +0,0 @@
-# Byte-compiled / optimized / DLL files
-__pycache__/
-*.py[cod]
-*$py.class
-
-# C extensions
-*.so
-
-# Distribution / packaging
-.Python
-env/
-build/
-develop-eggs/
-dist/
-downloads/
-eggs/
-.eggs/
-lib/
-lib64/
-parts/
-sdist/
-var/
-*.egg-info/
-.installed.cfg
-*.egg
-
-# PyInstaller
-#  Usually these files are written by a python script from a template
-#  before PyInstaller builds the exe, so as to inject date/other infos into it.
-*.manifest
-*.spec
-
-# Installer logs
-pip-log.txt
-pip-delete-this-directory.txt
-
-# Unit test / coverage reports
-htmlcov/
-.tox/
-.coverage
-.coverage.*
-.cache
-nosetests.xml
-coverage.xml
-*,cover
-.hypothesis/
-
-# Translations
-*.mo
-*.pot
-
-# Django stuff:
-*.log
-local_settings.py
-
-# Flask instance folder
-instance/
-
-# Sphinx documentation
-docs/_build/
-
-# PyBuilder
-target/
-
-# IPython Notebook
-.ipynb_checkpoints
-
-# pyenv
-.python-version
-
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 45f45b6..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,22 +0,0 @@
-# Config file for automatic testing at travis-ci.org
-
-sudo: false
-language: python
-python:
-  - "2.7"
-  - "3.4"
-  - "3.5"
-  - "3.6"
-  - "3.7"
-  - "pypy"
-
-install:
-  - pip install tox
-  - "TOX_ENV=${TRAVIS_PYTHON_VERSION/[0-9].[0-9]/py${TRAVIS_PYTHON_VERSION/.}}"
-script: tox -e $TOX_ENV
-
-before_cache:
-  - rm -rf $HOME/.cache/pip/log
-cache:
-  directories:
-    - $HOME/.cache/pip
diff --git a/PKG-INFO b/PKG-INFO
new file mode 100644
index 0000000..b92aa38
--- /dev/null
+++ b/PKG-INFO
@@ -0,0 +1,129 @@
+Metadata-Version: 2.1
+Name: pytest-lazy-fixture
+Version: 0.6.3
+Summary: It helps to use fixtures in pytest.mark.parametrize
+Home-page: https://github.com/tvorog/pytest-lazy-fixture
+Author: Marsel Zaripov
+Author-email: marszaripov@gmail.com
+Maintainer: Marsel Zaripov
+Maintainer-email: marszaripov@gmail.com
+License: MIT
+Classifier: Development Status :: 4 - Beta
+Classifier: Framework :: Pytest
+Classifier: Intended Audience :: Developers
+Classifier: Topic :: Software Development :: Testing
+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.4
+Classifier: Programming Language :: Python :: 3.5
+Classifier: Programming Language :: Python :: 3.6
+Classifier: Programming Language :: Python :: 3.7
+Classifier: Programming Language :: Python :: Implementation :: CPython
+Classifier: Programming Language :: Python :: Implementation :: PyPy
+Classifier: Operating System :: OS Independent
+Classifier: License :: OSI Approved :: MIT License
+License-File: LICENSE
+
+pytest-lazy-fixture |travis-ci| |appveyor| |pypi|
+=================================================
+
+Use your fixtures in ``@pytest.mark.parametrize``.
+
+Installation
+------------
+
+.. code-block:: shell
+
+    pip install pytest-lazy-fixture
+
+Usage
+-----
+
+pytest-lazy-fixture lets you use a fixture as one of the values passed
+in ``@pytest.mark.parametrize``:
+
+.. code-block:: python
+
+    import pytest
+    from pytest_lazyfixture import lazy_fixture
+
+    @pytest.fixture
+    def one():
+        return 1
+
+    @pytest.mark.parametrize('arg1,arg2', [
+        ('val1', lazy_fixture('one')),
+    ])
+    def test_func(arg1, arg2):
+        assert arg2 == 1
+
+This can be even more useful when the fixture is itself parametrized:
+
+.. code-block:: python
+
+    import pytest
+    from pytest_lazyfixture import lazy_fixture
+
+    @pytest.fixture(params=[1, 2])
+    def one(request):
+        return request.param
+
+    @pytest.mark.parametrize('arg1,arg2', [
+        ('val1', lazy_fixture('one')),
+    ])
+    def test_func(arg1, arg2):
+        assert arg2 in [1, 2]
+
+
+Also you can use it as a parameter in ``@pytest.fixture``:
+
+.. code-block:: python
+
+    import pytest
+    from pytest_lazyfixture import lazy_fixture
+
+    @pytest.fixture(params=[
+        lazy_fixture('one'),
+        lazy_fixture('two')
+    ])
+    def some(request):
+        return request.param
+
+    @pytest.fixture
+    def one():
+        return 1
+
+    @pytest.fixture
+    def two():
+        return 2
+
+    def test_func(some):
+        assert some in [1, 2]
+
+Please see `tests <https://github.com/TvoroG/pytest-lazy-fixture/blob/master/tests/test_lazyfixture.py>`_ for more examples.
+
+Contributing
+------------
+
+Contributions are very welcome. Tests can be run with ``tox``.
+
+License
+-------
+
+Distributed under the terms of the ``MIT`` license,
+``pytest-lazy-fixture`` is free and open source software
+
+Issues
+------
+
+If you encounter any problems, please ``file an issue`` along with a
+detailed description.
+
+.. |travis-ci| image:: https://travis-ci.org/TvoroG/pytest-lazy-fixture.svg?branch=master
+    :target: https://travis-ci.org/TvoroG/pytest-lazy-fixture
+.. |appveyor| image:: https://ci.appveyor.com/api/projects/status/github/TvoroG/pytest-fixture-mark?branch=master&svg=true
+    :target: https://ci.appveyor.com/project/TvoroG/pytest-fixture-mark
+.. |pypi| image:: https://badge.fury.io/py/pytest-lazy-fixture.svg
+    :target: https://pypi.python.org/pypi/pytest-lazy-fixture/
diff --git a/README.rst b/README.rst
index 690edb6..2639502 100644
--- a/README.rst
+++ b/README.rst
@@ -13,16 +13,37 @@ Installation
 Usage
 -----
 
+pytest-lazy-fixture lets you use a fixture as one of the values passed
+in ``@pytest.mark.parametrize``:
+
+.. code-block:: python
+
+    import pytest
+    from pytest_lazyfixture import lazy_fixture
+
+    @pytest.fixture
+    def one():
+        return 1
+
+    @pytest.mark.parametrize('arg1,arg2', [
+        ('val1', lazy_fixture('one')),
+    ])
+    def test_func(arg1, arg2):
+        assert arg2 == 1
+
+This can be even more useful when the fixture is itself parametrized:
+
 .. code-block:: python
 
     import pytest
+    from pytest_lazyfixture import lazy_fixture
 
     @pytest.fixture(params=[1, 2])
     def one(request):
         return request.param
 
     @pytest.mark.parametrize('arg1,arg2', [
-        ('val1', pytest.lazy_fixture('one')),
+        ('val1', lazy_fixture('one')),
     ])
     def test_func(arg1, arg2):
         assert arg2 in [1, 2]
@@ -33,10 +54,11 @@ Also you can use it as a parameter in ``@pytest.fixture``:
 .. code-block:: python
 
     import pytest
+    from pytest_lazyfixture import lazy_fixture
 
     @pytest.fixture(params=[
-        pytest.lazy_fixture('one'),
-        pytest.lazy_fixture('two')
+        lazy_fixture('one'),
+        lazy_fixture('two')
     ])
     def some(request):
         return request.param
diff --git a/appveyor.yml b/appveyor.yml
deleted file mode 100644
index 9f12acc..0000000
--- a/appveyor.yml
+++ /dev/null
@@ -1,40 +0,0 @@
-# What Python version is installed where:
-# http://www.appveyor.com/docs/installed-software#python
-
-environment:
-  matrix:
-    - PYTHON: "C:\\Python27"
-      TOX_ENV: "py27"
-
-    - PYTHON: "C:\\Python34"
-      TOX_ENV: "py34"
-
-    - PYTHON: "C:\\Python35"
-      TOX_ENV: "py35"
-
-    - PYTHON: "C:\\Python36"
-      TOX_ENV: "py36"
-
-    - PYTHON: "C:\\Python37"
-      TOX_ENV: "py37"
-
-init:
-  - "%PYTHON%/python -V"
-  - "%PYTHON%/python -c \"import struct;print( 8 * struct.calcsize(\'P\'))\""
-
-install:
-  - "%PYTHON%/Scripts/easy_install -U pip"
-  - "%PYTHON%/Scripts/pip install tox"
-  - "%PYTHON%/Scripts/pip install wheel"
-
-build: false  # Not a C# project, build stuff at the test step instead.
-
-test_script:
-  - "%PYTHON%/Scripts/tox -e %TOX_ENV%"
-
-after_test:
-  - "%PYTHON%/python setup.py bdist_wheel"
-  - ps: "ls dist"
-
-artifacts:
-  - path: dist\*
diff --git a/debian/changelog b/debian/changelog
index 0c77362..3810150 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+python-pytest-lazy-fixture (0.6.3+git20220127.1.18ec85e-1) UNRELEASED; urgency=low
+
+  * New upstream snapshot.
+
+ -- Debian Janitor <janitor@jelmer.uk>  Fri, 21 Oct 2022 20:03:33 -0000
+
 python-pytest-lazy-fixture (0.6.3-2) unstable; urgency=medium
 
   [ Debian Janitor ]
diff --git a/pytest_lazy_fixture.egg-info/PKG-INFO b/pytest_lazy_fixture.egg-info/PKG-INFO
new file mode 100644
index 0000000..b92aa38
--- /dev/null
+++ b/pytest_lazy_fixture.egg-info/PKG-INFO
@@ -0,0 +1,129 @@
+Metadata-Version: 2.1
+Name: pytest-lazy-fixture
+Version: 0.6.3
+Summary: It helps to use fixtures in pytest.mark.parametrize
+Home-page: https://github.com/tvorog/pytest-lazy-fixture
+Author: Marsel Zaripov
+Author-email: marszaripov@gmail.com
+Maintainer: Marsel Zaripov
+Maintainer-email: marszaripov@gmail.com
+License: MIT
+Classifier: Development Status :: 4 - Beta
+Classifier: Framework :: Pytest
+Classifier: Intended Audience :: Developers
+Classifier: Topic :: Software Development :: Testing
+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.4
+Classifier: Programming Language :: Python :: 3.5
+Classifier: Programming Language :: Python :: 3.6
+Classifier: Programming Language :: Python :: 3.7
+Classifier: Programming Language :: Python :: Implementation :: CPython
+Classifier: Programming Language :: Python :: Implementation :: PyPy
+Classifier: Operating System :: OS Independent
+Classifier: License :: OSI Approved :: MIT License
+License-File: LICENSE
+
+pytest-lazy-fixture |travis-ci| |appveyor| |pypi|
+=================================================
+
+Use your fixtures in ``@pytest.mark.parametrize``.
+
+Installation
+------------
+
+.. code-block:: shell
+
+    pip install pytest-lazy-fixture
+
+Usage
+-----
+
+pytest-lazy-fixture lets you use a fixture as one of the values passed
+in ``@pytest.mark.parametrize``:
+
+.. code-block:: python
+
+    import pytest
+    from pytest_lazyfixture import lazy_fixture
+
+    @pytest.fixture
+    def one():
+        return 1
+
+    @pytest.mark.parametrize('arg1,arg2', [
+        ('val1', lazy_fixture('one')),
+    ])
+    def test_func(arg1, arg2):
+        assert arg2 == 1
+
+This can be even more useful when the fixture is itself parametrized:
+
+.. code-block:: python
+
+    import pytest
+    from pytest_lazyfixture import lazy_fixture
+
+    @pytest.fixture(params=[1, 2])
+    def one(request):
+        return request.param
+
+    @pytest.mark.parametrize('arg1,arg2', [
+        ('val1', lazy_fixture('one')),
+    ])
+    def test_func(arg1, arg2):
+        assert arg2 in [1, 2]
+
+
+Also you can use it as a parameter in ``@pytest.fixture``:
+
+.. code-block:: python
+
+    import pytest
+    from pytest_lazyfixture import lazy_fixture
+
+    @pytest.fixture(params=[
+        lazy_fixture('one'),
+        lazy_fixture('two')
+    ])
+    def some(request):
+        return request.param
+
+    @pytest.fixture
+    def one():
+        return 1
+
+    @pytest.fixture
+    def two():
+        return 2
+
+    def test_func(some):
+        assert some in [1, 2]
+
+Please see `tests <https://github.com/TvoroG/pytest-lazy-fixture/blob/master/tests/test_lazyfixture.py>`_ for more examples.
+
+Contributing
+------------
+
+Contributions are very welcome. Tests can be run with ``tox``.
+
+License
+-------
+
+Distributed under the terms of the ``MIT`` license,
+``pytest-lazy-fixture`` is free and open source software
+
+Issues
+------
+
+If you encounter any problems, please ``file an issue`` along with a
+detailed description.
+
+.. |travis-ci| image:: https://travis-ci.org/TvoroG/pytest-lazy-fixture.svg?branch=master
+    :target: https://travis-ci.org/TvoroG/pytest-lazy-fixture
+.. |appveyor| image:: https://ci.appveyor.com/api/projects/status/github/TvoroG/pytest-fixture-mark?branch=master&svg=true
+    :target: https://ci.appveyor.com/project/TvoroG/pytest-fixture-mark
+.. |pypi| image:: https://badge.fury.io/py/pytest-lazy-fixture.svg
+    :target: https://pypi.python.org/pypi/pytest-lazy-fixture/
diff --git a/pytest_lazy_fixture.egg-info/SOURCES.txt b/pytest_lazy_fixture.egg-info/SOURCES.txt
new file mode 100644
index 0000000..5883c92
--- /dev/null
+++ b/pytest_lazy_fixture.egg-info/SOURCES.txt
@@ -0,0 +1,14 @@
+LICENSE
+MANIFEST.in
+README.rst
+pytest_lazyfixture.py
+setup.cfg
+setup.py
+pytest_lazy_fixture.egg-info/PKG-INFO
+pytest_lazy_fixture.egg-info/SOURCES.txt
+pytest_lazy_fixture.egg-info/dependency_links.txt
+pytest_lazy_fixture.egg-info/entry_points.txt
+pytest_lazy_fixture.egg-info/requires.txt
+pytest_lazy_fixture.egg-info/top_level.txt
+tests/conftest.py
+tests/test_lazyfixture.py
\ No newline at end of file
diff --git a/pytest_lazy_fixture.egg-info/dependency_links.txt b/pytest_lazy_fixture.egg-info/dependency_links.txt
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/pytest_lazy_fixture.egg-info/dependency_links.txt
@@ -0,0 +1 @@
+
diff --git a/pytest_lazy_fixture.egg-info/entry_points.txt b/pytest_lazy_fixture.egg-info/entry_points.txt
new file mode 100644
index 0000000..e9915c4
--- /dev/null
+++ b/pytest_lazy_fixture.egg-info/entry_points.txt
@@ -0,0 +1,2 @@
+[pytest11]
+lazy-fixture = pytest_lazyfixture
diff --git a/pytest_lazy_fixture.egg-info/requires.txt b/pytest_lazy_fixture.egg-info/requires.txt
new file mode 100644
index 0000000..1921f3d
--- /dev/null
+++ b/pytest_lazy_fixture.egg-info/requires.txt
@@ -0,0 +1 @@
+pytest>=3.2.5
diff --git a/pytest_lazy_fixture.egg-info/top_level.txt b/pytest_lazy_fixture.egg-info/top_level.txt
new file mode 100644
index 0000000..d41f85c
--- /dev/null
+++ b/pytest_lazy_fixture.egg-info/top_level.txt
@@ -0,0 +1 @@
+pytest_lazyfixture
diff --git a/pytest_lazyfixture.py b/pytest_lazyfixture.py
index 9969678..abf5db5 100644
--- a/pytest_lazyfixture.py
+++ b/pytest_lazyfixture.py
@@ -194,4 +194,6 @@ class LazyFixture(object):
         return '<{} "{}">'.format(self.__class__.__name__, self.name)
 
     def __eq__(self, other):
-        return self.name == other.name
+        if isinstance(other, LazyFixture):
+            return self.name == other.name
+        return NotImplemented
diff --git a/requirements.txt b/requirements.txt
deleted file mode 100644
index e7c94be..0000000
--- a/requirements.txt
+++ /dev/null
@@ -1,3 +0,0 @@
--e .
-tox
-flake8
diff --git a/setup.cfg b/setup.cfg
index abaa7c5..c7b6300 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,3 +1,9 @@
 [flake8]
+exclude = .git,.tox,build,dist,__pycache__,.pytest_cache,.cache
 max-line-length = 120
 ignore = F821 W503 W504
+
+[egg_info]
+tag_build = 
+tag_date = 0
+
diff --git a/tests/test_lazyfixture.py b/tests/test_lazyfixture.py
index 774948c..ba234b6 100644
--- a/tests/test_lazyfixture.py
+++ b/tests/test_lazyfixture.py
@@ -10,12 +10,13 @@ except ImportError:
 
 def test_fixture_in_parametrize_with_params(testdir):
     items = testdir.getitems("""
+        from pytest_lazyfixture import lazy_fixture
         import pytest
         @pytest.fixture(params=[1,2])
         def one(request):
             return request.param
         @pytest.mark.parametrize('arg1,arg2', [
-            ('val1', pytest.lazy_fixture('one')),
+            ('val1', lazy_fixture('one')),
             ('val1', 'val2')
         ])
         def test_func(arg1, arg2):
@@ -28,6 +29,7 @@ def test_fixture_in_parametrize_with_params(testdir):
 
 def test_several_fixtures_in_parametrize_with_params(testdir):
     items = testdir.getitems("""
+        from pytest_lazyfixture import lazy_fixture
         import pytest
         @pytest.fixture(params=[1,2])
         def one(request):
@@ -36,7 +38,7 @@ def test_several_fixtures_in_parametrize_with_params(testdir):
         def two(request):
             return request.param
         @pytest.mark.parametrize('arg1,arg2,arg3', [
-            ('val1', pytest.lazy_fixture('one'), pytest.lazy_fixture('two')),
+            ('val1', lazy_fixture('one'), lazy_fixture('two')),
         ])
         def test_func(arg1, arg2, arg3):
             pass
@@ -57,6 +59,7 @@ def test_several_fixtures_in_parametrize_with_params(testdir):
 
 def test_fixtures_in_parametrize_with_indirect(testdir):
     items = testdir.getitems("""
+        from pytest_lazyfixture import lazy_fixture
         import pytest
         @pytest.fixture
         def one():
@@ -65,7 +68,7 @@ def test_fixtures_in_parametrize_with_indirect(testdir):
         def two():
             pass
         @pytest.mark.parametrize('arg1,one', [
-            ('val1', pytest.lazy_fixture('two')),
+            ('val1', lazy_fixture('two')),
         ], indirect=['one'])
         def test_func(arg1, one):
             pass
@@ -76,6 +79,7 @@ def test_fixtures_in_parametrize_with_indirect(testdir):
 
 def test_fixtures_with_params_in_parametrize_with_indirect(testdir):
     items = testdir.getitems("""
+        from pytest_lazyfixture import lazy_fixture
         import pytest
         @pytest.fixture
         def one():
@@ -84,7 +88,7 @@ def test_fixtures_with_params_in_parametrize_with_indirect(testdir):
         def two(request):
             return request.param
         @pytest.mark.parametrize('arg1,one', [
-            ('val1', pytest.lazy_fixture('two')),
+            ('val1', lazy_fixture('two')),
         ], indirect=['one'])
         def test_func(arg1, one):
             pass
@@ -96,6 +100,7 @@ def test_fixtures_with_params_in_parametrize_with_indirect(testdir):
 
 def test_lazy_fixture_is_value_in_parametrize(testdir):
     testdir.makepyfile("""
+        from pytest_lazyfixture import lazy_fixture
         import pytest
         @pytest.fixture
         def one():
@@ -104,7 +109,7 @@ def test_lazy_fixture_is_value_in_parametrize(testdir):
         def two():
             return 2
         @pytest.mark.parametrize('arg1,arg2', [
-            pytest.lazy_fixture(('one', 'two'))
+            lazy_fixture(('one', 'two'))
         ])
         def test_func(arg1, arg2):
             assert arg1 == 1
@@ -116,6 +121,7 @@ def test_lazy_fixture_is_value_in_parametrize(testdir):
 
 def test_lazy_fixture_as_funcarg_in_parametrize_with_indirect(testdir):
     testdir.makepyfile("""
+        from pytest_lazyfixture import lazy_fixture
         import pytest
         @pytest.fixture
         def one():
@@ -127,7 +133,7 @@ def test_lazy_fixture_as_funcarg_in_parametrize_with_indirect(testdir):
         def three(request):
             return request.param
         @pytest.mark.parametrize('arg1,arg2,three', [
-            (pytest.lazy_fixture('one'), pytest.lazy_fixture('two'), '3')
+            (lazy_fixture('one'), lazy_fixture('two'), '3')
         ], indirect=['three'])
         def test_func(arg1, arg2, three):
             assert arg1 == 1
@@ -140,6 +146,7 @@ def test_lazy_fixture_as_funcarg_in_parametrize_with_indirect(testdir):
 
 def test_lazy_fixture_is_value_in_parametrize_with_indirect(testdir):
     testdir.makepyfile("""
+        from pytest_lazyfixture import lazy_fixture
         import pytest
         @pytest.fixture
         def one(request):
@@ -148,7 +155,7 @@ def test_lazy_fixture_is_value_in_parametrize_with_indirect(testdir):
         def two():
             return 2
         @pytest.mark.parametrize('one', [
-            pytest.lazy_fixture('two')
+            lazy_fixture('two')
         ], indirect=True)
         def test_func(one):
             assert one == 2
@@ -159,10 +166,11 @@ def test_lazy_fixture_is_value_in_parametrize_with_indirect(testdir):
 
 def test_lazy_fixture_as_param_of_fixture(testdir):
     testdir.makepyfile("""
+        from pytest_lazyfixture import lazy_fixture
         import pytest
         @pytest.fixture(params=[
-            pytest.lazy_fixture('one'),
-            pytest.lazy_fixture('two')
+            lazy_fixture('one'),
+            lazy_fixture('two')
         ])
         def some(request):
             return request.param
@@ -181,6 +189,7 @@ def test_lazy_fixture_as_param_of_fixture(testdir):
 
 def test_lazy_fixture_in_params_which_has_params(testdir):
     testdir.makepyfile("""
+        from pytest_lazyfixture import lazy_fixture
         import pytest
         @pytest.fixture(params=[1, 2, 3])
         def one(request):
@@ -189,8 +198,8 @@ def test_lazy_fixture_in_params_which_has_params(testdir):
         def two():
             return 4
         @pytest.fixture(params=[
-            pytest.lazy_fixture('one'),
-            pytest.lazy_fixture('two')
+            lazy_fixture('one'),
+            lazy_fixture('two')
         ])
         def some(request):
             return request.param
@@ -203,9 +212,10 @@ def test_lazy_fixture_in_params_which_has_params(testdir):
 
 def test_lazy_fixture_three_times_nested(testdir):
     testdir.makepyfile("""
+        from pytest_lazyfixture import lazy_fixture
         import pytest
         @pytest.fixture(params=[
-            1, 2, pytest.lazy_fixture('three')])
+            1, 2, lazy_fixture('three')])
         def one(request):
             return str(request.param)
         @pytest.fixture
@@ -215,8 +225,8 @@ def test_lazy_fixture_three_times_nested(testdir):
         def three():
             return 3
         @pytest.fixture(params=[
-            pytest.lazy_fixture('one'),
-            pytest.lazy_fixture('two')
+            lazy_fixture('one'),
+            lazy_fixture('two')
         ])
         def some(request):
             return request.param
@@ -229,9 +239,10 @@ def test_lazy_fixture_three_times_nested(testdir):
 
 def test_lazy_fixture_three_times_nested_with_one_failed(testdir):
     testdir.makepyfile("""
+        from pytest_lazyfixture import lazy_fixture
         import pytest
         @pytest.fixture(params=[
-            1, 2, pytest.lazy_fixture('three')
+            1, 2, lazy_fixture('three')
         ])
         def one(request):
             return str(request.param)
@@ -242,8 +253,8 @@ def test_lazy_fixture_three_times_nested_with_one_failed(testdir):
         def three():
             return 5
         @pytest.fixture(params=[
-            pytest.lazy_fixture('one'),
-            pytest.lazy_fixture('two')
+            lazy_fixture('one'),
+            lazy_fixture('two')
         ])
         def some(request):
             return request.param
@@ -256,14 +267,15 @@ def test_lazy_fixture_three_times_nested_with_one_failed(testdir):
 
 def test_lazy_fixture_common_dependency(testdir):
     testdir.makepyfile("""
+        from pytest_lazyfixture import lazy_fixture
         import pytest
         @pytest.fixture(params=[1, 2, 3])
         def one(request):
             return request.param
-        @pytest.fixture(params=[pytest.lazy_fixture('one')])
+        @pytest.fixture(params=[lazy_fixture('one')])
         def as_str(request):
             return str(request.param)
-        @pytest.fixture(params=[pytest.lazy_fixture('one')])
+        @pytest.fixture(params=[lazy_fixture('one')])
         def as_hex(request):
             return hex(request.param)
 
@@ -281,14 +293,15 @@ def test_lazy_fixture_common_dependency(testdir):
 
 def test_lazy_fixture_common_dependency_with_getfixturevalue(testdir):
     testdir.makepyfile("""
+        from pytest_lazyfixture import lazy_fixture
         import pytest
         @pytest.fixture(params=[1, 2, 3])
         def one(request):
             return request.param
-        @pytest.fixture(params=[pytest.lazy_fixture('one')])
+        @pytest.fixture(params=[lazy_fixture('one')])
         def as_str(request):
             return str(request.getfixturevalue('one'))
-        @pytest.fixture(params=[pytest.lazy_fixture('one')])
+        @pytest.fixture(params=[lazy_fixture('one')])
         def as_hex(request):
             return hex(request.getfixturevalue('one'))
         def test_as_str(as_str):
@@ -304,12 +317,13 @@ def test_lazy_fixture_common_dependency_with_getfixturevalue(testdir):
 
 def test_issues2(testdir):
     testdir.makepyfile("""
+        from pytest_lazyfixture import lazy_fixture
         import pytest
         @pytest.fixture(params=[1, 2, 3])
         def one(request):
             return request.param
 
-        @pytest.fixture(params=[pytest.lazy_fixture('one')])
+        @pytest.fixture(params=[lazy_fixture('one')])
         def as_str(request):
             return str(request.getfixturevalue('one'))
 
@@ -324,12 +338,13 @@ def test_issues2(testdir):
 
 def test_issues2_2(testdir):
     testdir.makepyfile("""
+        from pytest_lazyfixture import lazy_fixture
         import pytest
         @pytest.fixture(params=[1, 2, 3])
         def one(request):
             return request.param
 
-        @pytest.fixture(params=[pytest.lazy_fixture('one')])
+        @pytest.fixture(params=[lazy_fixture('one')])
         def as_str(request):
             return str(request.getfixturevalue('one'))
 
@@ -346,6 +361,7 @@ def test_issues2_2(testdir):
 
 def test_issues3_autouse_fixtures_should_run_first(testdir):
     testdir.makepyfile("""
+        from pytest_lazyfixture import lazy_fixture
         import pytest
         gl = False
         @pytest.fixture(autouse=True)
@@ -358,7 +374,7 @@ def test_issues3_autouse_fixtures_should_run_first(testdir):
             return 1 if gl is True else -1
 
         @pytest.mark.parametrize('arg1', [
-            pytest.lazy_fixture('one')
+            lazy_fixture('one')
         ])
         def test_some(arg1):
             assert arg1 == 1
@@ -369,6 +385,7 @@ def test_issues3_autouse_fixtures_should_run_first(testdir):
 
 def test_issues10_xfail(testdir):
     testdir.makepyfile("""
+        from pytest_lazyfixture import lazy_fixture
         import pytest
         def division(a, b):
             return a / b
@@ -378,7 +395,7 @@ def test_issues10_xfail(testdir):
             return request.param
 
         @pytest.mark.parametrize(('a', 'b'), [
-            pytest.param(1, pytest.lazy_fixture('zero'), marks=pytest.mark.xfail(reason=ZeroDivisionError))
+            pytest.param(1, lazy_fixture('zero'), marks=pytest.mark.xfail(reason=ZeroDivisionError))
         ])
         def test_division(a, b):
             division(a, b)
@@ -409,6 +426,7 @@ def test_issues11_autouse_fixture_in_test_class(testdir):
 
 def test_issues12_skip_test_function(testdir):
     testdir.makepyfile("""
+        from pytest_lazyfixture import lazy_fixture
         import pytest
 
         @pytest.fixture
@@ -416,14 +434,14 @@ def test_issues12_skip_test_function(testdir):
             return 1
 
         @pytest.mark.parametrize('a', [
-            pytest.param(pytest.lazy_fixture('one'), marks=pytest.mark.skip(reason='skip'))
+            pytest.param(lazy_fixture('one'), marks=pytest.mark.skip(reason='skip'))
         ])
         def test_skip1(a):
             assert a == 1
 
         @pytest.mark.skip(reason='skip')
         @pytest.mark.parametrize('a', [
-            pytest.lazy_fixture('one')
+            lazy_fixture('one')
         ])
         def test_skip2(a):
             assert a == 1
@@ -437,6 +455,7 @@ def test_issues12_skip_test_function(testdir):
 
 def test_issues12_skip_test_method(testdir):
     testdir.makepyfile("""
+        from pytest_lazyfixture import lazy_fixture
         import pytest
 
         class TestModels:
@@ -446,13 +465,13 @@ def test_issues12_skip_test_method(testdir):
 
             @pytest.mark.skip(reason='skip this')
             @pytest.mark.parametrize('a', [
-                pytest.lazy_fixture('one')
+                lazy_fixture('one')
             ])
             def test_model_a(self, a):
                 assert a == 1
 
             @pytest.mark.parametrize('a', [
-                pytest.param(pytest.lazy_fixture('one'), marks=pytest.mark.skip(reason='skip this'))
+                pytest.param(lazy_fixture('one'), marks=pytest.mark.skip(reason='skip this'))
             ])
             def test_model_b(self, a):
                 assert a == 1
@@ -466,6 +485,7 @@ def test_issues12_skip_test_method(testdir):
 
 def test_issues12_lf_as_method_of_test_class(testdir):
     testdir.makepyfile("""
+        from pytest_lazyfixture import lazy_fixture
         import pytest
 
         class TestModels:
@@ -474,7 +494,7 @@ def test_issues12_lf_as_method_of_test_class(testdir):
                 return 1
 
             @pytest.mark.parametrize('a', [
-                pytest.lazy_fixture('one')
+                lazy_fixture('one')
             ])
             def test_lf(self, a):
                 assert a == 1
@@ -501,6 +521,7 @@ def test_issues13_unittest_testcase_class_should_not_fail(testdir):
 
 def test_argnames_initialized_in_right_order(testdir):
     testdir.makepyfile("""
+        from pytest_lazyfixture import lazy_fixture
         import pytest
         @pytest.fixture
         def one():
@@ -511,7 +532,7 @@ def test_argnames_initialized_in_right_order(testdir):
             a[0] = a[0] + 2
 
         @pytest.mark.parametrize('a,b', [
-            (pytest.lazy_fixture('one'), pytest.lazy_fixture('plus_two'))
+            (lazy_fixture('one'), lazy_fixture('plus_two'))
         ])
         def test_skip1(a, b):
             assert a == [3]
@@ -523,6 +544,7 @@ def test_argnames_initialized_in_right_order(testdir):
 # https://github.com/TvoroG/pytest-lazy-fixture/pull/19
 def test_argnames_initialized_in_right_order2(testdir):
     testdir.makepyfile("""
+        from pytest_lazyfixture import lazy_fixture
         import pytest
         @pytest.fixture
         def one():
@@ -537,7 +559,7 @@ def test_argnames_initialized_in_right_order2(testdir):
         def pytest_generate_tests(metafunc):
             metafunc.fixturenames = ['a', 'b']
             metafunc.parametrize(argnames=['a', 'b'],
-                                 argvalues=[(pytest.lazy_fixture('one'), pytest.lazy_fixture('plus_two'))],
+                                 argvalues=[(lazy_fixture('one'), lazy_fixture('plus_two'))],
                                  indirect=['b'])
 
     """)
@@ -589,6 +611,7 @@ def test_sorted_argnames(params, fixturenames, expect_keys):
 
 def test_lazy_fixtures_with_subfixtures(testdir):
     testdir.makepyfile("""
+        from pytest_lazyfixture import lazy_fixture
         import pytest
 
         @pytest.fixture(params=["a", "A"])
@@ -603,11 +626,11 @@ def test_lazy_fixtures_with_subfixtures(testdir):
         def c(a):
             return "c" + a
 
-        @pytest.fixture(params=[pytest.lazy_fixture('a'), pytest.lazy_fixture('b'), pytest.lazy_fixture('c')])
+        @pytest.fixture(params=[lazy_fixture('a'), lazy_fixture('b'), lazy_fixture('c')])
         def d(request):
             return "d" + request.param
 
-        @pytest.fixture(params=[pytest.lazy_fixture('a'), pytest.lazy_fixture('d'), ""])
+        @pytest.fixture(params=[lazy_fixture('a'), lazy_fixture('d'), ""])
         def e(request):
             return "e" + request.param
 
@@ -623,6 +646,7 @@ def test_lazy_fixtures_with_subfixtures(testdir):
 
 def test_lazy_fixtures_in_subfixture(testdir):
     testdir.makepyfile("""
+        from pytest_lazyfixture import lazy_fixture
         import pytest
 
         @pytest.fixture
@@ -633,7 +657,7 @@ def test_lazy_fixtures_in_subfixture(testdir):
         def b():
             return "b"
 
-        @pytest.fixture(params=[pytest.lazy_fixture('a'), pytest.lazy_fixture('b')])
+        @pytest.fixture(params=[lazy_fixture('a'), lazy_fixture('b')])
         def c(request):
             return "c" + request.param
 
@@ -651,6 +675,7 @@ def test_lazy_fixtures_in_subfixture(testdir):
 @pytest.mark.parametrize('autouse', [False, True])
 def test_issues23(testdir, autouse):
     testdir.makepyfile("""
+        from pytest_lazyfixture import lazy_fixture
         import pytest
 
         @pytest.fixture(params=[0, 1], autouse={})
@@ -662,7 +687,7 @@ def test_issues23(testdir, autouse):
             return zero * request.param
 
         @pytest.fixture(params=[
-            pytest.lazy_fixture('one'),
+            lazy_fixture('one'),
         ])
         def some(request):
             return request.param
@@ -677,6 +702,7 @@ def test_issues23(testdir, autouse):
 
 def test_lazy_fixture_nested_fixtures(testdir):
     testdir.makepyfile("""
+        from pytest_lazyfixture import lazy_fixture
         import pytest
 
         @pytest.fixture
@@ -688,8 +714,8 @@ def test_lazy_fixture_nested_fixtures(testdir):
             return "SOME_VALUE2"
 
         @pytest.fixture(params=[
-            pytest.lazy_fixture("one"),
-            pytest.lazy_fixture("two"),
+            lazy_fixture("one"),
+            lazy_fixture("two"),
         ])
         def some_fixture1(request):
             return request.param
@@ -904,3 +930,9 @@ def test_lazy_fixture_ids(testdir):
     assert 'test_the_thing[foo]' in stdout
     assert 'test_the_thing[bar-spam]' in stdout
     assert 'test_the_thing[bar-eggs]' in stdout
+
+
+def test_eq():
+    assert lazy_fixture("Lol") == lazy_fixture("Lol")
+    assert lazy_fixture("Lol") != lazy_fixture("Wut")
+    assert lazy_fixture("Lol") != 123
diff --git a/tox.ini b/tox.ini
deleted file mode 100644
index f4c8875..0000000
--- a/tox.ini
+++ /dev/null
@@ -1,75 +0,0 @@
-# For more information about tox, see https://tox.readthedocs.io/en/latest/
-[tox]
-envlist =
-    {py27,py34,py35,py36,py37,pypy}-pytest_{3_2,3_3,3_4,3_5,3_6,3_7,3_8,3_9,3_10,4_0,4_1,4_2,4_3,4_4,4_5,4_6,5_0,5_1,5_2,5_3}
-    flake8
-skip_missing_interpreters=True
-
-[testenv]
-commands = py.test {posargs:tests}
-deps =
-     pytest_3_2: pytest<3.3.0
-
-     pytest_3_3: pytest<3.4.0
-     pytest_3_3: attrs==19.1.0
-
-     pytest_3_4: pytest<3.5.0
-     pytest_3_4: attrs==19.1.0
-
-     pytest_3_5: pytest<3.6.0
-     pytest_3_6: pytest<3.7.0
-     pytest_3_7: pytest<3.8.0
-     pytest_3_8: pytest<3.9.0
-     pytest_3_9: pytest<3.10.0
-     pytest_3_10: pytest<4.0.0
-
-     pytest_4_0: pytest<4.1.0
-     pytest_4_0: attrs==19.1.0
-
-     pytest_4_1: pytest<4.2.0
-     pytest_4_1: attrs==19.1.0
-
-     pytest_4_2: pytest<4.3.0
-     pytest_4_2: attrs==19.1.0
-
-     pytest_4_3: pytest<4.4.0
-     pytest_4_3: attrs==19.1.0
-
-     pytest_4_4: pytest<4.5.0
-     pytest_4_4: attrs==19.1.0
-
-     pytest_4_5: pytest<4.6.0
-     pytest_4_5: attrs==19.1.0
-
-     pytest_4_6: pytest<5.0.0
-     pytest_4_6: attrs==19.1.0
-
-     pytest_5_0: pytest<5.1.0
-     pytest_5_0: attrs==19.1.0
-
-     pytest_5_1: pytest<5.2.0
-     pytest_5_1: attrs==19.1.0
-
-     pytest_5_2: pytest<5.3.0
-     pytest_5_2: attrs==19.1.0
-
-     pytest_5_3: pytest<5.4.0
-     pytest_5_3: attrs==19.1.0
-
-     numpy==1.16.5
-
-[testenv:flake8]
-skip_install = true
-deps = flake8
-commands = flake8 pytest_lazyfixture.py setup.py tests
-
-[testenv:pytest]
-deps = -egit+https://github.com/pytest-dev/pytest.git#egg=pytest
-     tox
-     hypothesis>=3.5.2
-     nose
-     mock
-     requests
-     xmlschema
-changedir = {envdir}/src/pytest
-commands = pytest --lsof -rfsxX

Debdiff

File lists identical (after any substitutions)

No differences were encountered in the control files

More details

Full run details