Implement editor-related steps in pytest-bdd

- Implement mock editor fixture
- Add fixture to keep track of editor state
- Implement various steps to check editor state

Co-authored-by: Micah Jerome Ellison <micah.jerome.ellison@gmail.com>
This commit is contained in:
Jonathan Wren 2021-04-24 14:47:52 -07:00
parent ce64d7973b
commit 3ddfb4d594
6 changed files with 475 additions and 133 deletions

View file

@ -51,8 +51,9 @@ toml = ">=0.10"
pyflakes = ">=2.2.0"
pytest = ">=6.2"
pytest-bdd = "^4.0.1"
pytest-icdiff = "^0.5"
yq = ">=2.11"
ipdb = ">=0.13"
pytest-clarity = "^0.3.0-alpha.0"
[tool.poetry.scripts]
jrnl = 'jrnl.cli:cli'
@ -66,9 +67,15 @@ force_sort_within_sections = true
[tool.pytest.ini_options]
minversion = "6.0"
required_plugins = [
"pytest-bdd"
]
markers = [
"todo",
]
addopts = [
"--pdbcls=IPython.terminal.debugger:Pdb"
]
filterwarnings = [
"ignore::DeprecationWarning",