Skip to content

Commit

Permalink
compile python
Browse files Browse the repository at this point in the history
  • Loading branch information
martabal committed Apr 26, 2024
1 parent 43068e8 commit 52a62c2
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 95 deletions.
101 changes: 51 additions & 50 deletions poetry.lock

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

6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ python = "^3.11"
jinja2 = "^3.1.3"

[tool.poetry.group.dev.dependencies]
ruff = "^0.4.1"
black = "^24.4.0"
ruff = "^0.4.2"
black = "^24.4.2"

[tool.poetry.group.test.dependencies]
pytest = "^8.0.1"
pytest = "^8.1.1"

[build-system]
requires = ["poetry-core"]
Expand Down
9 changes: 7 additions & 2 deletions render_templates/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,22 @@ def run_around_tests():
if os.path.exists(test_folder_path):
rmtree(test_folder_path)

def test_count_dependencies():
assert len(flavors) == 4

def test_create_all_dependencies():
argv = ["--build-path", test_folder_name]
init(argv)


def test_check_folder():
argv = []
for flavor in flavors:
argv = ["--flavor", flavor["name"], "--build-path", test_folder_name]
folder = build_folder_prefix + flavor["name"]
init(argv)
folder = build_folder_prefix + flavor["name"]
flavor_path = os.path.join(test_folder_path, folder)
dockerfile_path = os.path.join(flavor_path, 'Dockerfile')
root_path = os.path.join(flavor_path, 'root')
assert os.path.exists(flavor_path) is True
assert os.path.exists(dockerfile_path) is True
assert os.path.exists(root_path) is True
Loading

0 comments on commit 52a62c2

Please sign in to comment.