python两个编程环境_多个python Behave环境安装文件
我試圖擺脫行為框架中的某些標準并遇到一些問題.是否可以擁有多個具有before *和after *鉤子的environment.py文件?
我正在為一套微服務編寫測試工具.我有以下目錄樹.
root
|-- step_defintions
| |-- service1
| |-- environment.py
| |-- __init__.py (steps,imports root.step_defintions.service1.envrionment)
| |-- service2
| |-- environment.py
| |-- __init__.py (steps,imports root.step_defintions.service2.envrionment)
|-- features
| |-- environment.py
| |-- steps
| |-- __init__.py (imports root.step_definitions *)
| |-- service1
| |-- 000_service1.feature
| |-- 001_service1.feature
| |-- service2
| |-- 000_service2.feature
我的問題是它似乎沒有在step_definitions / service [1 | 2] /envrionment.py文件中的* hook之后獲取我之前的*.
我想將這些分開而不是在功能目錄中用于組織目的.文件設置一些對象并將它們附加到上下文以跟蹤某些步驟之間的數據
創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎總結
以上是生活随笔為你收集整理的python两个编程环境_多个python Behave环境安装文件的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: python小项目超级大脑抱香_超级大脑
- 下一篇: html表单与python交互,HTML