
GITHUB . COM {
}
Detected CMS Systems:
- Wordpress (2 occurrences)
Title:
Improve error message for fixtures with circular dependencies Β· Issue #2909 Β· pytest-dev/pytest
Description:
I'm getting an error saying that a fixture is not found, even though it is in the list of available fixtures. $ pytest test_linked.py ============================= test session starts =========...
Website Age:
17 years and 8 months (reg. 2007-10-09).
Matching Content Categories {π}
- DIY & Home Improvement
- Home & Garden
- Technology & Computing
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 {π}
fixtures, pytest, error, ronnypfannschmidt, def, circular, dependencies, issue, linkedthing, linkedthinglinkedthing, type, closed, information, sign, improve, message, fixture, homeraviprjnntestlinkedpy, pytestfixture, added, weeks, inactivity, topic, commented, question, charlax, requests, projects, found, testlinkedpy, errors, file, line, version, status, member, nicoddemus, navigation, pull, actions, security, list, linux, testlinkedthinglinkedthing, otherlinkedthing, return, pip, workaround, reporter, provide,
Topics {βοΈ}
local/share/virtualenvs/nn/lib/python3 file /home/ravi/prj/nn/test_linked /home/ravi/prj/nn/test_linked /home/ravi/prj/nn create circular dependencies report circular dep /home/ravi/ 6/site-packages/pytest question general question user-facing messages comment metadata assignees assigned labels topic pytest-factoryboy linux svelte 4 type projects $ pytest --version pytest version 3 $ pytest test_linked projects milestone 'pytest --fixtures [testpath]' involving fixtures directly removed status nicoddemus changed def test_linked_thing fixture def linked_thing_1 fixture def linked_thing_2 list charlax edits charlax mentioned return linkedthing indirectly topic def __init__ removed type errors type information reporter fixture 'linked_thing_1' bug problem hand im reporting related terminal output recursive dependency milestone relationships issue error github share pytest-3 pytest 3 pytest fixture
Payment Methods {π}
- Braintree
Questions {β}
- Already have an account?
- Is there a work-around?
Schema {πΊοΈ}
DiscussionForumPosting:
context:https://schema.org
headline:Improve error message for fixtures with circular dependencies
articleBody:I'm getting an error saying that a fixture is not found, even though it is in the list of `available fixtures`.
```
$ pytest test_linked.py
============================= test session starts ==============================
platform linux -- Python 3.6.3, pytest-3.2.3, py-1.4.34, pluggy-0.4.0
rootdir: /home/ravi/prj/nn, inifile:
collected 1 item
test_linked.py E
==================================== ERRORS ====================================
_____________________ ERROR at setup of test_linked_thing ______________________
file /home/ravi/prj/nn/test_linked.py, line 19
def test_linked_thing(linked_thing_1, linked_thing_2):
file /home/ravi/prj/nn/test_linked.py, line 9
@pytest.fixture
def linked_thing_1(linked_thing_2):
file /home/ravi/prj/nn/test_linked.py, line 14
@pytest.fixture
def linked_thing_2(linked_thing_1):
E fixture 'linked_thing_1' not found
> available fixtures: cache, capfd, capsys, doctest_namespace, linked_thing_1, linked_thing_2, monkeypatch, pytestconfig, record_xml_property, recwarn, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/ravi/prj/nn/test_linked.py:14
=========================== 1 error in 0.01 seconds ============================
$
```
**test_linked.py**
```
import pytest
class LinkedThing:
def __init__(self, other_linked_thing):
self.link = other_linked_thing
@pytest.fixture
def linked_thing_1(linked_thing_2):
return LinkedThing(linked_thing_2)
@pytest.fixture
def linked_thing_2(linked_thing_1):
return LinkedThing(linked_thing_1)
def test_linked_thing(linked_thing_1, linked_thing_2):
assert 1
```
**Environment:**
```
$ pytest --version
This is pytest version 3.2.3, imported from /home/ravi/.local/share/virtualenvs/nn/lib/python3.6/site-packages/pytest.py
$ uname -a
Linux svelte 4.13.11-1-MANJARO #1 SMP PREEMPT Thu Nov 2 13:37:46 UTC 2017 x86_64 GNU/Linux
$ pip list --format=columns
Package Version
----------------- ---------
certifi 2017.11.5
chardet 3.0.4
colorama 0.3.9
docopt 0.6.2
gevent 1.2.2
greenlet 0.4.12
idna 2.6
numpy 1.13.3
pbr 3.1.1
pigar 0.7.1
pip 9.0.1
pip-autoremove 0.9.0
pipreqs 0.4.9
py 1.4.34
pytest 3.2.3
requests 2.18.4
setuptools 36.6.0
six 1.11.0
stevedore 1.27.1
urllib3 1.22
virtualenv 15.1.0
virtualenv-clone 0.2.6
virtualenvwrapper 4.8.2
wheel 0.30.0
yarg 0.1.9
```
Is there a work-around?
author:
url:https://github.com/HaleTom
type:Person
name:HaleTom
datePublished:2017-11-10T09:53:54.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:5
url:https://github.com/2909/pytest/issues/2909
context:https://schema.org
headline:Improve error message for fixtures with circular dependencies
articleBody:I'm getting an error saying that a fixture is not found, even though it is in the list of `available fixtures`.
```
$ pytest test_linked.py
============================= test session starts ==============================
platform linux -- Python 3.6.3, pytest-3.2.3, py-1.4.34, pluggy-0.4.0
rootdir: /home/ravi/prj/nn, inifile:
collected 1 item
test_linked.py E
==================================== ERRORS ====================================
_____________________ ERROR at setup of test_linked_thing ______________________
file /home/ravi/prj/nn/test_linked.py, line 19
def test_linked_thing(linked_thing_1, linked_thing_2):
file /home/ravi/prj/nn/test_linked.py, line 9
@pytest.fixture
def linked_thing_1(linked_thing_2):
file /home/ravi/prj/nn/test_linked.py, line 14
@pytest.fixture
def linked_thing_2(linked_thing_1):
E fixture 'linked_thing_1' not found
> available fixtures: cache, capfd, capsys, doctest_namespace, linked_thing_1, linked_thing_2, monkeypatch, pytestconfig, record_xml_property, recwarn, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/ravi/prj/nn/test_linked.py:14
=========================== 1 error in 0.01 seconds ============================
$
```
**test_linked.py**
```
import pytest
class LinkedThing:
def __init__(self, other_linked_thing):
self.link = other_linked_thing
@pytest.fixture
def linked_thing_1(linked_thing_2):
return LinkedThing(linked_thing_2)
@pytest.fixture
def linked_thing_2(linked_thing_1):
return LinkedThing(linked_thing_1)
def test_linked_thing(linked_thing_1, linked_thing_2):
assert 1
```
**Environment:**
```
$ pytest --version
This is pytest version 3.2.3, imported from /home/ravi/.local/share/virtualenvs/nn/lib/python3.6/site-packages/pytest.py
$ uname -a
Linux svelte 4.13.11-1-MANJARO #1 SMP PREEMPT Thu Nov 2 13:37:46 UTC 2017 x86_64 GNU/Linux
$ pip list --format=columns
Package Version
----------------- ---------
certifi 2017.11.5
chardet 3.0.4
colorama 0.3.9
docopt 0.6.2
gevent 1.2.2
greenlet 0.4.12
idna 2.6
numpy 1.13.3
pbr 3.1.1
pigar 0.7.1
pip 9.0.1
pip-autoremove 0.9.0
pipreqs 0.4.9
py 1.4.34
pytest 3.2.3
requests 2.18.4
setuptools 36.6.0
six 1.11.0
stevedore 1.27.1
urllib3 1.22
virtualenv 15.1.0
virtualenv-clone 0.2.6
virtualenvwrapper 4.8.2
wheel 0.30.0
yarg 0.1.9
```
Is there a work-around?
author:
url:https://github.com/HaleTom
type:Person
name:HaleTom
datePublished:2017-11-10T09:53:54.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:5
url:https://github.com/2909/pytest/issues/2909
Person:
url:https://github.com/HaleTom
name:HaleTom
url:https://github.com/HaleTom
name:HaleTom
InteractionCounter:
interactionType:https://schema.org/CommentAction
userInteractionCount:5
interactionType:https://schema.org/CommentAction
userInteractionCount:5
External Links {π}(2)
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