From be8989d566a715955b896cb1e90d4bb6b48e113e Mon Sep 17 00:00:00 2001 From: Jake Runzer Date: Thu, 28 Apr 2022 23:11:14 -0400 Subject: [PATCH] fix python tests --- tests/integration_tests.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index e5fca42a1..ea5b9492f 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -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(()) }