-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
40 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,30 @@ | ||
def test_dummy(): | ||
assert 42 == 42 | ||
from rocket.rocket import Rocket | ||
|
||
|
||
def test_create_python_wheel_from_python_project_successful(rocket: Rocket, python_project_path: str): | ||
""" | ||
Test if DB Rocket can build a python project | ||
""" | ||
wheel_path, wheel_file = rocket._create_python_project_wheel(python_project_path) | ||
assert wheel_file | ||
assert wheel_path | ||
|
||
|
||
def test_create_python_wheel_from_poetry_project_successful(rocket: Rocket, poetry_project_path: str): | ||
""" | ||
Test if DB Rocket can build a poetry project | ||
""" | ||
wheel_path, wheel_file = rocket._create_python_project_wheel(poetry_project_path) | ||
assert wheel_file | ||
assert wheel_path | ||
|
||
|
||
def test_create_python_wheel_from_temp_folder_raises_exception(rocket: Rocket): | ||
""" | ||
Test if DB Rocket will raise an error if project is not a supported project | ||
""" | ||
try: | ||
wheel_path, wheel_file = rocket._create_python_project_wheel("/tmp") | ||
except: | ||
assert True | ||
|