Comments (2)
def test(env_vars):
print(env_vars.domain)
pytest 的 fixture 必须作为函数参数才能被引用。
from tep.
单独把 env_vars 函数,放在别的fixture 模块下,可以调用;放在fixture_env_vars.py 下面就不行
@dongfanger
from tep.
Related Issues (6)
- 学习 HOT 1
- pytest -n 5 --tep-reports test_*.py, but the report is empty, why? HOT 3
- windows 执行pytest --tep-reports生成报告,查看用例执行详情看到有stderr错误,好像是loguru没关掉造成的 HOT 4
- 之前都运行的好好的,把pytest_cache文件夹删掉后就:FileNotFoundError: 'tests' directory not found. HOT 7
- 命令行之行pytest报错:/lib/python3.9/site-packages/tep/fixture.py, line 35 @pytest.fixture(scope="session") def url(env_vars): E fixture 'env_vars' not found HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tep.