Skip to content

Commit

Permalink
update filter prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
0v00 committed Feb 20, 2024
1 parent 5de6c2c commit 7f1c99f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions crates/uv/tests/venv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ fn create_venv() -> Result<()> {

// Create a virtual environment at `.venv`.
let filter_venv = regex::escape(&venv.normalized_display().to_string());
let filter_prompt = r"(?s)Activate with:\n- Powershell: .*\n- CMD: .*";
let filter_prompt = r"Activate with: (?:.*)\\Scripts\\activate";
let filters = &[
(
r"Using Python 3\.\d+\.\d+ interpreter at .+",
Expand Down Expand Up @@ -58,7 +58,7 @@ fn create_venv() -> Result<()> {

// Create a virtual environment at the same location, which should replace it.
let filter_venv = regex::escape(&venv.normalized_display().to_string());
let filter_prompt = r"(?s)Activate with:\n- Powershell: .*\n- CMD: .*";
let filter_prompt = r"Activate with: (?:.*)\\Scripts\\activate";
let filters = &[
(
r"Using Python 3\.\d+\.\d+ interpreter at .+",
Expand Down Expand Up @@ -106,7 +106,7 @@ fn create_venv_defaults_to_cwd() -> Result<()> {
let venv = temp_dir.child(".venv");

let filter_venv = regex::escape(&venv.normalized_display().to_string());
let filter_prompt = r"(?s)Activate with:\n- Powershell: .*\n- CMD: .*";
let filter_prompt = r"Activate with: (?:.*)\\Scripts\\activate";
let filters = &[
(
r"Using Python 3\.\d+\.\d+ interpreter at .+",
Expand Down Expand Up @@ -150,7 +150,7 @@ fn seed() -> Result<()> {
let venv = temp_dir.child(".venv");

let filter_venv = regex::escape(&venv.normalized_display().to_string());
let filter_prompt = r"(?s)Activate with:\n- Powershell: .*\n- CMD: .*";
let filter_prompt = r"Activate with: (?:.*)\\Scripts\\activate";
let filters = &[
(
r"Using Python 3\.\d+\.\d+ interpreter at .+",
Expand Down Expand Up @@ -294,7 +294,7 @@ fn create_venv_python_patch() -> Result<()> {
let venv = temp_dir.child(".venv");

let filter_venv = regex::escape(&venv.normalized_display().to_string());
let filter_prompt = r"(?s)Activate with:\n- Powershell: .*\n- CMD: .*";
let filter_prompt = r"Activate with: (?:.*)\\Scripts\\activate";
let filters = &[
(r"interpreter at .+", "interpreter at [PATH]"),
(&filter_venv, "/home/ferris/project/.venv"),
Expand Down Expand Up @@ -388,7 +388,7 @@ fn empty_dir_exists() -> Result<()> {
venv.create_dir_all()?;

let filter_venv = regex::escape(&venv.normalized_display().to_string());
let filter_prompt = r"(?s)Activate with:\n- Powershell: .*\n- CMD: .*";
let filter_prompt = r"Activate with: (?:.*)\\Scripts\\activate";
let filters = &[
(
r"Using Python 3\.\d+\.\d+ interpreter at .+",
Expand Down Expand Up @@ -485,7 +485,7 @@ fn virtualenv_compatibility() -> Result<()> {

// Create a virtual environment at `.venv`, passing the redundant `--clear` flag.
let filter_venv = regex::escape(&venv.normalized_display().to_string());
let filter_prompt = r"(?s)Activate with:\n- Powershell: .*\n- CMD: .*";
let filter_prompt = r"Activate with: (?:.*)\\Scripts\\activate";
let filters = &[
(
r"Using Python 3\.\d+\.\d+ interpreter at .+",
Expand Down

0 comments on commit 7f1c99f

Please sign in to comment.