Code Monkey home page Code Monkey logo

Comments (9)

bubenkoff avatar bubenkoff commented on May 28, 2024

please attach the full code example to understand the problem

from pytest-bdd.

olegpidsadnyi avatar olegpidsadnyi commented on May 28, 2024

I just tried it and it is covered with the test. It is just a fixture. It should simply work.
What could it be is you perhaps don't have init.py in the same folder where your conftest.py is. Or you have init.py missing somewhere.

from pytest-bdd.

dustinfarris avatar dustinfarris commented on May 28, 2024

@olegpidsadnyi i am using python 3.x so i don't think missing __init__.py could be a problem. I will add them anyway and see if that fixes it.

from pytest-bdd.

bubenkoff avatar bubenkoff commented on May 28, 2024

init.py is required

On 3 September 2014 23:05, Dustin Farris [email protected] wrote:

@olegpidsadnyi https://github.com/olegpidsadnyi i am using python 3.x
so i don't think missing init.py could be a problem. I will add them
anyway and see if that fixes it.


Reply to this email directly or view it on GitHub
#58 (comment)
.

Anatoly Bubenkov

from pytest-bdd.

dustinfarris avatar dustinfarris commented on May 28, 2024

I'm using 3.4 to be specific. I think the __init__.py requirement was removed in 3.3.

https://docs.python.org/3/whatsnew/3.3.html#pep-420-implicit-namespace-packages

from pytest-bdd.

bubenkoff avatar bubenkoff commented on May 28, 2024

that's not requirement of the python, that's requirement of the pytest and
pytest-bdd

On 3 September 2014 23:09, Dustin Farris [email protected] wrote:

I'm using 3.4 to be specific. I think the init.py requirement was
removed in 3.3.

https://docs.python.org/3/whatsnew/3.3.html#pep-420-implicit-namespace-packages


Reply to this email directly or view it on GitHub
#58 (comment)
.

Anatoly Bubenkov

from pytest-bdd.

bubenkoff avatar bubenkoff commented on May 28, 2024

you need to have init.py everywhere where conftest.py is

On 3 September 2014 23:15, Anatoly Bubenkov [email protected] wrote:

that's not requirement of the python, that's requirement of the pytest and
pytest-bdd

On 3 September 2014 23:09, Dustin Farris [email protected] wrote:

I'm using 3.4 to be specific. I think the init.py requirement was
removed in 3.3.

https://docs.python.org/3/whatsnew/3.3.html#pep-420-implicit-namespace-packages


Reply to this email directly or view it on GitHub
#58 (comment)
.

Anatoly Bubenkov

Anatoly Bubenkov

from pytest-bdd.

olegpidsadnyi avatar olegpidsadnyi commented on May 28, 2024

I just tried removing the init.py and adding it back. py.test has some magick to determine where to stop traversing folders. It won't work without the init.py in the whole folder tree. It uses it to traverse to your confstests

from pytest-bdd.

dustinfarris avatar dustinfarris commented on May 28, 2024

ah ok, thanks for the tip.

from pytest-bdd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.