Skip to content

Commit

Permalink
Fix bundler tests
Browse files Browse the repository at this point in the history
  • Loading branch information
m2-farzan committed Jan 24, 2022
1 parent 7498ef6 commit 9c83944
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/04_bundler/test_docker_bundler_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def test_docker_bundler_cli():
if os.path.exists(expected_dockerfile_path):
os.remove(expected_dockerfile_path)

response_binary = check_output(['cake-bundler', sample_project_dir])
response_binary = check_output(['python', '-m', 'cake_bundler', sample_project_dir])
response = response_binary.decode('utf-8')
assert "Dockerfile generated." in response
assert os.path.exists(expected_dockerfile_path)
4 changes: 2 additions & 2 deletions test/04_bundler/test_get_dockerfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ def test_get_dockerfile():
expected_lines = \
"""FROM ros:galactic-ros-base-focal
RUN apt-get update
RUN apt-get install -y python3-pip
RUN pip3 install git+https://github.com/CakeRobotics/crl
RUN pip3 install numpy scipy
COPY . /app
CMD ["python3", "-u", "/app/main.py"]"""
assert expected_lines in dockerfile_content
for line in expected_lines:
assert line in dockerfile_content


def test_get_dockerfile_with_local_crl():
Expand Down

0 comments on commit 9c83944

Please sign in to comment.