
GITHUB . COM {
}
Detected CMS Systems:
- Wordpress (2 occurrences)
Title:
3.6.0 breaks usefixtures when using unittest/unittest2 Β· Issue #3498 Β· pytest-dev/pytest
Description:
Thanks for submitting an issue! Here's a quick checklist in what to include: Include a detailed description of the bug or suggestion @pytest.mark.usefixtures() on test cases in classes that inh...
Website Age:
17 years and 8 months (reg. 2007-10-09).
Matching Content Categories {π}
- Education
- Technology & Computing
- Automotive
Content Management System {π}
What CMS is github.com built with?
Github.com uses WORDPRESS.
Traffic Estimate {π}
What is the average monthly size of github.com audience?
ππ Tremendous Traffic: 10M - 20M visitors per month
Based on our best estimate, this website will receive around 10,000,019 visitors per month in the current month.
However, some sources were not loaded, we suggest to reload the page to get complete results.
check SE Ranking
check Ahrefs
check Similarweb
check Ubersuggest
check Semrush
How Does Github.com Make Money? {πΈ}
Subscription Packages {π³}
We've located a dedicated page on github.com that might include details about subscription plans or recurring payments. We identified it based on the word pricing in one of its internal links. Below, you'll find additional estimates for its monthly recurring revenues.How Much Does Github.com Make? {π°}
Subscription Packages {π³}
Prices on github.com are in US Dollars ($).
They range from $4.00/month to $21.00/month.
We estimate that the site has approximately 4,989,889 paying customers.
The estimated monthly recurring revenue (MRR) is $20,957,532.
The estimated annual recurring revenues (ARR) are $251,490,385.
Wordpress Themes and Plugins {π¨}
What WordPress theme does this site use?
It is strange but we were not able to detect any theme on the page.
What WordPress plugins does this website use?
It is strange but we were not able to detect any plugins on the page.
Keywords {π}
pytest, unittest, fixture, ronnypfannschmidt, test, testspy, issue, python, inside, commented, marks, owensmacbookprobug, owen, pluggy, class, type, owenleonard, bug, pip, testone, testtwo, items, related, added, plugin, member, sign, import, def, testsunittesttestcase, session, starts, platform, darwin, rootdir, usersowenrepossandboxbug, inifile, collected, passed, seconds, tests, problem, builtin, correctly, fix, pytestdev, projects, breaks, list, working,
Topics {βοΈ}
/users/owen/repos/sandbox/bug unit-test tests nose test suites unittest plugin handles py inside test_one parametrized test support fixes pytest-de⦠3 owens-macbook-pro 10 owens-macbook-pro owens-macbook-pro pip list break devpi tests ronnypfannschmidt added fixture1 inside test_one fixture2 inside test_two working previously type type projects projects milestone test cases quick-fix - getfixtureinfo correctly added builtin type inside test_one function due inside test_two unittest related addressed type class tests unittest tests detailed description bug problem installed pytest installed pytest 3 run unittest 4 unittest subtests def test_one considered correctly simply hiding loaded correctly actual function def test_two remaining packages getfixtureinfo time yield tests tests fail marks related quick checklist quick response def fixture1 def fixture2
Payment Methods {π}
- Braintree
Questions {β}
- Already have an account?
Schema {πΊοΈ}
DiscussionForumPosting:
context:https://schema.org
headline:3.6.0 breaks usefixtures when using unittest/unittest2
articleBody:Thanks for submitting an issue!
Here's a quick checklist in what to include:
- [x] Include a detailed description of the bug or suggestion
`@pytest.mark.usefixtures()` on test cases in classes that inherit from unittest.TestCase and unittest2.TestCase no longer works. The fixtures are completely ignored.
Given your README.rst says `Can run unittest (or trial), nose test suites out of the box;`, I'm assuming this is an appropriate bug to file.
- [x] `pip list` of the virtual environment you are using
In both venvs, I installed pytest and unittest2. The remaining packages are just dependencies
python 3.6.3
```
Owens-MacBook-Pro:bug owen$ pip list
Package Version
-------------- -------
atomicwrites 1.1.5
attrs 18.1.0
linecache2 1.0.0
more-itertools 4.1.0
pip 10.0.1
pluggy 0.6.0
py 1.5.3
pytest 3.6.0
setuptools 39.2.0
six 1.11.0
traceback2 1.4.0
unittest2 1.1.0
wheel 0.31.1
```
python 2.7.10
```
Owens-MacBook-Pro:bug owen$ pip list
Package Version
-------------- -------
atomicwrites 1.1.5
attrs 18.1.0
funcsigs 1.0.2
linecache2 1.0.0
more-itertools 4.1.0
pip 10.0.1
pluggy 0.6.0
py 1.5.3
pytest 3.6.0
setuptools 39.2.0
six 1.11.0
traceback2 1.4.0
unittest2 1.1.0
wheel 0.31.1
```
- [x] pytest and operating system versions
pytest 3.6.0
macOS High Sierra 10.13.4
- [x] Minimal example if possible
conftest.py
```python
import pytest
@pytest.fixture(scope='function')
def fixture1():
print("in fixture1")
yield
@pytest.fixture(scope='function')
def fixture2():
print("in fixture2")
yield
```
tests.py
```python
import pytest
# import unittest
# import unittest2
# class Tests(unittest.TestCase):
# class Tests(unittest2.TestCase):
class Tests(object):
@pytest.mark.usefixtures("fixture1")
def test_one(self):
print("inside test_one")
@pytest.mark.usefixtures("fixture1", "fixture2")
def test_two(self):
print("inside test_two")
```
Results identical between python 2.7.10 and 3.6.3:
using `class Tests(object)`
```
Owens-MacBook-Pro:bug owen$ pytest -s tests.py
=============================== test session starts ===============================
platform darwin -- Python 2.7.10, pytest-3.6.0, py-1.5.3, pluggy-0.6.0
rootdir: /Users/owen/repos/sandbox/bug, inifile:
collected 2 items
tests.py in fixture1
inside test_one
.in fixture1
in fixture2
inside test_two
.
============================ 2 passed in 0.02 seconds =============================
```
using `class Tests(unittest.TestCase)`
```
Owens-MacBook-Pro:bug owen$ pytest -s tests.py
=============================== test session starts ===============================
platform darwin -- Python 2.7.10, pytest-3.6.0, py-1.5.3, pluggy-0.6.0
rootdir: /Users/owen/repos/sandbox/bug, inifile:
collected 2 items
tests.py inside test_one
.inside test_two
.
============================ 2 passed in 0.01 seconds =============================
```
Notice `in fixture1` and `in fixture2` is not printed
using `class Tests(unittest2.TestCase)`
```
Owens-MacBook-Pro:bug owen$ pytest -s tests.py
=============================== test session starts ===============================
platform darwin -- Python 2.7.10, pytest-3.6.0, py-1.5.3, pluggy-0.6.0
rootdir: /Users/owen/repos/sandbox/bug, inifile:
collected 2 items
tests.py inside test_one
.inside test_two
.
============================ 2 passed in 0.04 seconds =============================
```
Notice `in fixture1` and `in fixture2` is not printed
I also installed pytest 3.5.1 instead of 3.6.0 to show it was working before using unittest2:
```
Owens-MacBook-Pro:bug owen$ pytest -s tests.py
=============================== test session starts ===============================
platform darwin -- Python 2.7.10, pytest-3.5.1, py-1.5.3, pluggy-0.6.0
rootdir: /Users/owen/repos/sandbox/bug, inifile:
collected 2 items
tests.py running fixture1
inside test_one
.running fixture1
running fixture2
inside test_two
.
============================ 2 passed in 0.02 seconds =============================
```
author:
url:https://github.com/owenleonard
type:Person
name:owenleonard
datePublished:2018-05-23T18:11:04.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:7
url:https://github.com/3498/pytest/issues/3498
context:https://schema.org
headline:3.6.0 breaks usefixtures when using unittest/unittest2
articleBody:Thanks for submitting an issue!
Here's a quick checklist in what to include:
- [x] Include a detailed description of the bug or suggestion
`@pytest.mark.usefixtures()` on test cases in classes that inherit from unittest.TestCase and unittest2.TestCase no longer works. The fixtures are completely ignored.
Given your README.rst says `Can run unittest (or trial), nose test suites out of the box;`, I'm assuming this is an appropriate bug to file.
- [x] `pip list` of the virtual environment you are using
In both venvs, I installed pytest and unittest2. The remaining packages are just dependencies
python 3.6.3
```
Owens-MacBook-Pro:bug owen$ pip list
Package Version
-------------- -------
atomicwrites 1.1.5
attrs 18.1.0
linecache2 1.0.0
more-itertools 4.1.0
pip 10.0.1
pluggy 0.6.0
py 1.5.3
pytest 3.6.0
setuptools 39.2.0
six 1.11.0
traceback2 1.4.0
unittest2 1.1.0
wheel 0.31.1
```
python 2.7.10
```
Owens-MacBook-Pro:bug owen$ pip list
Package Version
-------------- -------
atomicwrites 1.1.5
attrs 18.1.0
funcsigs 1.0.2
linecache2 1.0.0
more-itertools 4.1.0
pip 10.0.1
pluggy 0.6.0
py 1.5.3
pytest 3.6.0
setuptools 39.2.0
six 1.11.0
traceback2 1.4.0
unittest2 1.1.0
wheel 0.31.1
```
- [x] pytest and operating system versions
pytest 3.6.0
macOS High Sierra 10.13.4
- [x] Minimal example if possible
conftest.py
```python
import pytest
@pytest.fixture(scope='function')
def fixture1():
print("in fixture1")
yield
@pytest.fixture(scope='function')
def fixture2():
print("in fixture2")
yield
```
tests.py
```python
import pytest
# import unittest
# import unittest2
# class Tests(unittest.TestCase):
# class Tests(unittest2.TestCase):
class Tests(object):
@pytest.mark.usefixtures("fixture1")
def test_one(self):
print("inside test_one")
@pytest.mark.usefixtures("fixture1", "fixture2")
def test_two(self):
print("inside test_two")
```
Results identical between python 2.7.10 and 3.6.3:
using `class Tests(object)`
```
Owens-MacBook-Pro:bug owen$ pytest -s tests.py
=============================== test session starts ===============================
platform darwin -- Python 2.7.10, pytest-3.6.0, py-1.5.3, pluggy-0.6.0
rootdir: /Users/owen/repos/sandbox/bug, inifile:
collected 2 items
tests.py in fixture1
inside test_one
.in fixture1
in fixture2
inside test_two
.
============================ 2 passed in 0.02 seconds =============================
```
using `class Tests(unittest.TestCase)`
```
Owens-MacBook-Pro:bug owen$ pytest -s tests.py
=============================== test session starts ===============================
platform darwin -- Python 2.7.10, pytest-3.6.0, py-1.5.3, pluggy-0.6.0
rootdir: /Users/owen/repos/sandbox/bug, inifile:
collected 2 items
tests.py inside test_one
.inside test_two
.
============================ 2 passed in 0.01 seconds =============================
```
Notice `in fixture1` and `in fixture2` is not printed
using `class Tests(unittest2.TestCase)`
```
Owens-MacBook-Pro:bug owen$ pytest -s tests.py
=============================== test session starts ===============================
platform darwin -- Python 2.7.10, pytest-3.6.0, py-1.5.3, pluggy-0.6.0
rootdir: /Users/owen/repos/sandbox/bug, inifile:
collected 2 items
tests.py inside test_one
.inside test_two
.
============================ 2 passed in 0.04 seconds =============================
```
Notice `in fixture1` and `in fixture2` is not printed
I also installed pytest 3.5.1 instead of 3.6.0 to show it was working before using unittest2:
```
Owens-MacBook-Pro:bug owen$ pytest -s tests.py
=============================== test session starts ===============================
platform darwin -- Python 2.7.10, pytest-3.5.1, py-1.5.3, pluggy-0.6.0
rootdir: /Users/owen/repos/sandbox/bug, inifile:
collected 2 items
tests.py running fixture1
inside test_one
.running fixture1
running fixture2
inside test_two
.
============================ 2 passed in 0.02 seconds =============================
```
author:
url:https://github.com/owenleonard
type:Person
name:owenleonard
datePublished:2018-05-23T18:11:04.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:7
url:https://github.com/3498/pytest/issues/3498
Person:
url:https://github.com/owenleonard
name:owenleonard
url:https://github.com/owenleonard
name:owenleonard
InteractionCounter:
interactionType:https://schema.org/CommentAction
userInteractionCount:7
interactionType:https://schema.org/CommentAction
userInteractionCount:7
External Links {π}(3)
Analytics and Tracking {π}
- Site Verification - Google
Libraries {π}
- Clipboard.js
- D3.js
- Lodash
Emails and Hosting {βοΈ}
Mail Servers:
- aspmx.l.google.com
- alt1.aspmx.l.google.com
- alt2.aspmx.l.google.com
- alt3.aspmx.l.google.com
- alt4.aspmx.l.google.com
Name Servers:
- dns1.p08.nsone.net
- dns2.p08.nsone.net
- dns3.p08.nsone.net
- dns4.p08.nsone.net
- ns-1283.awsdns-32.org
- ns-1707.awsdns-21.co.uk
- ns-421.awsdns-52.com
- ns-520.awsdns-01.net