@@ -6,6 +6,25 @@ def test_bake_project_no_cli_podman(cookies, bake_project_no_cli_podman_data):
6
6
assert result .project_path .name == "python-no-cli"
7
7
assert result .project_path .is_dir ()
8
8
assert result .project_path .joinpath ("README.md" ).is_file ()
9
+ assert result .project_path .joinpath ("requirements.txt" ).is_file ()
10
+ assert result .project_path .joinpath ("requirements-dev.txt" ).is_file ()
11
+ assert result .project_path .joinpath ("python_no_cli" ).is_dir ()
12
+ assert not result .project_path .joinpath ("python_no_cli" , "python_no_cli_cli.py" ).is_file ()
13
+ assert not result .project_path .joinpath ("python_no_cli" , "example.py" ).is_file ()
14
+ assert result .project_path .joinpath ("containers" , "Containerfile" ).is_file ()
15
+ assert not result .project_path .joinpath ("containers" , "Dockerfile" ).is_file ()
16
+
17
+
18
+ def test_bake_project_uv_no_cli_podman (cookies , bake_project_uv_no_cli_podman_data ):
19
+ result = cookies .bake (extra_context = bake_project_uv_no_cli_podman_data )
20
+
21
+ assert result .exit_code == 0
22
+ assert result .exception is None
23
+ assert result .project_path .name == "python-no-cli"
24
+ assert result .project_path .is_dir ()
25
+ assert result .project_path .joinpath ("README.md" ).is_file ()
26
+ assert not result .project_path .joinpath ("requirements.txt" ).is_file ()
27
+ assert not result .project_path .joinpath ("requirements-dev.txt" ).is_file ()
9
28
assert result .project_path .joinpath ("python_no_cli" ).is_dir ()
10
29
assert not result .project_path .joinpath ("python_no_cli" , "python_no_cli_cli.py" ).is_file ()
11
30
assert not result .project_path .joinpath ("python_no_cli" , "example.py" ).is_file ()
@@ -21,6 +40,25 @@ def test_bake_project_no_cli_docker(cookies, bake_project_no_cli_docker_data):
21
40
assert result .project_path .name == "python-no-cli"
22
41
assert result .project_path .is_dir ()
23
42
assert result .project_path .joinpath ("README.md" ).is_file ()
43
+ assert result .project_path .joinpath ("requirements.txt" ).is_file ()
44
+ assert result .project_path .joinpath ("requirements-dev.txt" ).is_file ()
45
+ assert result .project_path .joinpath ("python_no_cli" ).is_dir ()
46
+ assert not result .project_path .joinpath ("python_no_cli" , "python_no_cli_cli.py" ).is_file ()
47
+ assert not result .project_path .joinpath ("python_no_cli" , "example.py" ).is_file ()
48
+ assert not result .project_path .joinpath ("containers" , "Containerfile" ).is_file ()
49
+ assert result .project_path .joinpath ("containers" , "Dockerfile" ).is_file ()
50
+
51
+
52
+ def test_bake_project_uv_no_cli_docker (cookies , bake_project_uv_no_cli_docker_data ):
53
+ result = cookies .bake (extra_context = bake_project_uv_no_cli_docker_data )
54
+
55
+ assert result .exit_code == 0
56
+ assert result .exception is None
57
+ assert result .project_path .name == "python-no-cli"
58
+ assert result .project_path .is_dir ()
59
+ assert result .project_path .joinpath ("README.md" ).is_file ()
60
+ assert not result .project_path .joinpath ("requirements.txt" ).is_file ()
61
+ assert not result .project_path .joinpath ("requirements-dev.txt" ).is_file ()
24
62
assert result .project_path .joinpath ("python_no_cli" ).is_dir ()
25
63
assert not result .project_path .joinpath ("python_no_cli" , "python_no_cli_cli.py" ).is_file ()
26
64
assert not result .project_path .joinpath ("python_no_cli" , "example.py" ).is_file ()
@@ -36,6 +74,25 @@ def test_bake_project_cli_podman(cookies, bake_project_cli_podman_data):
36
74
assert result .project_path .name == "python-with-cli"
37
75
assert result .project_path .is_dir ()
38
76
assert result .project_path .joinpath ("README.md" ).is_file ()
77
+ assert result .project_path .joinpath ("requirements.txt" ).is_file ()
78
+ assert result .project_path .joinpath ("requirements-dev.txt" ).is_file ()
79
+ assert result .project_path .joinpath ("python_with_cli" ).is_dir ()
80
+ assert result .project_path .joinpath ("python_with_cli" , "python_with_cli_cli.py" ).is_file ()
81
+ assert result .project_path .joinpath ("python_with_cli" , "example.py" ).is_file ()
82
+ assert result .project_path .joinpath ("containers" , "Containerfile" ).is_file ()
83
+ assert not result .project_path .joinpath ("containers" , "Dockerfile" ).is_file ()
84
+
85
+
86
+ def test_bake_project_uv_cli_podman (cookies , bake_project_uv_cli_podman_data ):
87
+ result = cookies .bake (extra_context = bake_project_uv_cli_podman_data )
88
+
89
+ assert result .exit_code == 0
90
+ assert result .exception is None
91
+ assert result .project_path .name == "python-with-cli"
92
+ assert result .project_path .is_dir ()
93
+ assert result .project_path .joinpath ("README.md" ).is_file ()
94
+ assert not result .project_path .joinpath ("requirements.txt" ).is_file ()
95
+ assert not result .project_path .joinpath ("requirements-dev.txt" ).is_file ()
39
96
assert result .project_path .joinpath ("python_with_cli" ).is_dir ()
40
97
assert result .project_path .joinpath ("python_with_cli" , "python_with_cli_cli.py" ).is_file ()
41
98
assert result .project_path .joinpath ("python_with_cli" , "example.py" ).is_file ()
@@ -51,6 +108,25 @@ def test_bake_project_cli_docker(cookies, bake_project_cli_docker_data):
51
108
assert result .project_path .name == "python-with-cli"
52
109
assert result .project_path .is_dir ()
53
110
assert result .project_path .joinpath ("README.md" ).is_file ()
111
+ assert result .project_path .joinpath ("requirements.txt" ).is_file ()
112
+ assert result .project_path .joinpath ("requirements-dev.txt" ).is_file ()
113
+ assert result .project_path .joinpath ("python_with_cli" ).is_dir ()
114
+ assert result .project_path .joinpath ("python_with_cli" , "python_with_cli_cli.py" ).is_file ()
115
+ assert result .project_path .joinpath ("python_with_cli" , "example.py" ).is_file ()
116
+ assert not result .project_path .joinpath ("containers" , "Containerfile" ).is_file ()
117
+ assert result .project_path .joinpath ("containers" , "Dockerfile" ).is_file ()
118
+
119
+
120
+ def test_bake_project_uv_cli_docker (cookies , bake_project_uv_cli_docker_data ):
121
+ result = cookies .bake (extra_context = bake_project_uv_cli_docker_data )
122
+
123
+ assert result .exit_code == 0
124
+ assert result .exception is None
125
+ assert result .project_path .name == "python-with-cli"
126
+ assert result .project_path .is_dir ()
127
+ assert result .project_path .joinpath ("README.md" ).is_file ()
128
+ assert not result .project_path .joinpath ("requirements.txt" ).is_file ()
129
+ assert not result .project_path .joinpath ("requirements-dev.txt" ).is_file ()
54
130
assert result .project_path .joinpath ("python_with_cli" ).is_dir ()
55
131
assert result .project_path .joinpath ("python_with_cli" , "python_with_cli_cli.py" ).is_file ()
56
132
assert result .project_path .joinpath ("python_with_cli" , "example.py" ).is_file ()
0 commit comments