Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ coverage.*

# general files
*.json
*.log
*.log

.venv
7 changes: 6 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
{
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"python.testing.cwd": "${workspaceFolder}",
"python.experiments.enabled": true,
"python.testing.autoTestDiscoverOnSaveEnabled": false,
"python.experiments.optInto": ["pythonTestAdapter"],
"pythonTestExplorer.testFramework": "pytest"
"python.testing.pytestArgs": [
"--rootdir=${workspaceFolder}",
"tests"
]
}
130 changes: 127 additions & 3 deletions poetry.lock

Large diffs are not rendered by default.

18 changes: 13 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
[tool.pytest.ini_options]
pythonpath='.'
testpaths='tests'


[tool.poetry]
name = "general-python"
version = "0.1.0"
description = ""
authors = ["Mark Barbaric <markantonybarbaric@hotmail.com>"]
readme = "README.md"

[tool.pytest.ini_options]
pythonpath=[
"."
]
testpaths=[
"tests"
]
addopts=[
"--ignore=.venv/",
"--ignore=workbooks/",
]

[tool.poetry.dependencies]
python = "^3.10"
pytest = "^8.3.2"
Expand All @@ -25,6 +32,7 @@ asyncio = "^3.4.3"
flask-sqlalchemy = "^3.1.1"
mysql-connector-python = "^9.0.0"
sqlalchemy = "^2.0.32"
flake8 = "^7.1.1"

[tool.poetry.group.jupyter.dependencies]
matplotlib = "^3.9.2"
Expand Down
File renamed without changes.
Empty file.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ def test_get_items(test_fast_api_client):
def test_get_item_200(test_fast_api_client):
res = test_fast_api_client.get('/recipes/00000000-0000-0000-0000-000000000001')
assert res.status_code == 200
assert res.json() == RECIPES_DB[0]
res_json = res.json()
assert res_json == RECIPES_DB[0]


def test_get_item_400(test_fast_api_client):
Expand Down
Loading