Skip to content

Commit

Permalink
fix python tests
Browse files Browse the repository at this point in the history
  • Loading branch information
coffee-cup committed Apr 29, 2022
1 parent c362202 commit be8989d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,12 @@ pub fn test_python() -> Result<()> {
assert_eq!(plan.build.unwrap().cmd, None);
assert_eq!(
plan.install.unwrap().cmd,
Some("python -m ensurepip && python -m pip install -r requirements.txt".to_string())
Some("python -m venv /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt".to_string())
);
assert_eq!(
plan.start.unwrap().cmd,
Some("gunicorn main:app".to_string())
);
assert_eq!(plan.start.unwrap().cmd, Some("python main.py".to_string()));

Ok(())
}
Expand Down

0 comments on commit be8989d

Please sign in to comment.