|
2 | 2 |
|
3 | 3 | import pytest |
4 | 4 |
|
5 | | -import gardenlinux.github.__main__ as gh |
| 5 | +import gardenlinux.github.release.__main__ as gh |
6 | 6 | from gardenlinux.constants import GARDENLINUX_GITHUB_RELEASE_BUCKET_NAME |
7 | 7 |
|
8 | 8 | from ..constants import TEST_GARDENLINUX_COMMIT, TEST_GARDENLINUX_RELEASE |
@@ -69,7 +69,7 @@ def test_script_create_dry_run(monkeypatch, capfd): |
69 | 69 | ], |
70 | 70 | ) |
71 | 71 | monkeypatch.setattr( |
72 | | - "gardenlinux.github.__main__.create_github_release_notes", |
| 72 | + "gardenlinux.github.release.__main__.create_github_release_notes", |
73 | 73 | lambda tag, commit, bucket: f"{tag} {commit} {bucket}", |
74 | 74 | ) |
75 | 75 |
|
@@ -100,11 +100,11 @@ def test_script_create(monkeypatch, caplog): |
100 | 100 | ], |
101 | 101 | ) |
102 | 102 | monkeypatch.setattr( |
103 | | - "gardenlinux.github.__main__.create_github_release_notes", |
| 103 | + "gardenlinux.github.release.__main__.create_github_release_notes", |
104 | 104 | lambda tag, commit, bucket: f"{tag} {commit} {bucket}", |
105 | 105 | ) |
106 | 106 | monkeypatch.setattr( |
107 | | - "gardenlinux.github.__main__.create_github_release", |
| 107 | + "gardenlinux.github.release.__main__.create_github_release", |
108 | 108 | lambda a1, a2, a3, a4, a5, a6: TEST_GARDENLINUX_RELEASE, |
109 | 109 | ) |
110 | 110 |
|
@@ -135,7 +135,7 @@ def test_script_upload_dry_run(monkeypatch, capfd): |
135 | 135 | ], |
136 | 136 | ) |
137 | 137 | monkeypatch.setattr( |
138 | | - "gardenlinux.github.__main__.upload_to_github_release_page", |
| 138 | + "gardenlinux.github.release.__main__.upload_to_github_release_page", |
139 | 139 | lambda a1, a2, a3, a4, dry_run: print(f"dry-run: {dry_run}"), |
140 | 140 | ) |
141 | 141 |
|
|
0 commit comments