Skip to content
Open
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
22 changes: 22 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Папки с кэшем и временными файлами
__pycache__/
*.pyc
.pytest_cache/
.coverage
.coverage.*

# Виртуальное окружение
venv/
env/
.env

# Редакторы
.vscode/
.idea/

# Логи
*.log

# Системные файлы
.DS_Store
Thumbs.db
19 changes: 19 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import pytest

from praktikum.bun import Bun
from praktikum.burger import Burger
from praktikum.database import Database



@pytest.fixture(scope = 'function')
def bun():
return Bun('white bun', 100)

@pytest.fixture(scope = 'function')
def burger():
return Burger()

@pytest.fixture(scope = 'function')
def db():
return Database()
8 changes: 8 additions & 0 deletions helpers.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from praktikum.ingredient import Ingredient
from praktikum.ingredient_types import INGREDIENT_TYPE_SAUCE, INGREDIENT_TYPE_FILLING


@staticmethod
def ingredients_list():
return [Ingredient(INGREDIENT_TYPE_SAUCE, "sour cream", 200),
Ingredient(INGREDIENT_TYPE_FILLING, "dinosaur", 200)]
221 changes: 221 additions & 0 deletions htmlcov/class_index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading