Skip to content

Commit

Permalink
Fix python spec expectations to match new pip error output
Browse files Browse the repository at this point in the history
  • Loading branch information
feelepxyz committed Feb 8, 2021
1 parent 435ca20 commit 1138e3e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@
expect { subject }.
to raise_error(Dependabot::DependencyFileNotResolvable) do |error|
expect(error.message).
to start_with("Could not find a version that matches boto3")
to include("Could not find a version that matches boto3")
end
end
end
Expand All @@ -245,7 +245,7 @@
expect { subject }.
to raise_error(Dependabot::DependencyFileNotResolvable) do |error|
expect(error.message).
to start_with("Could not find a version that matches boto3")
to include("Could not find a version that matches boto3")
end
end
end
Expand Down Expand Up @@ -273,7 +273,7 @@
expect { subject }.
to raise_error(Dependabot::DependencyFileNotResolvable) do |error|
expect(error.message).
to start_with("Could not find a version that matches jupyter-server")
to include("Could not find a version that matches jupyter-server")
end
end
end
Expand Down Expand Up @@ -518,7 +518,7 @@
expect { subject }.
to raise_error(Dependabot::DependencyFileNotResolvable) do |error|
expect(error.message).
to start_with("Could not find a version that matches boto3")
to include("Could not find a version that matches boto3")
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
expect { subject }.
to raise_error(Dependabot::DependencyFileNotResolvable) do |error|
expect(error.message).
to include("depends on black (^18) which doesn't match any")
to include("depends on black (>=18,<19) which doesn't match any versions")
end
end

Expand All @@ -243,9 +243,7 @@
expect { subject }.
to raise_error(Dependabot::DependencyFileNotResolvable) do |error|
expect(error.message).
to include("Because pythonprojects depends on croniter "\
"(0.3.26) which doesn't match any versions, version solving "\
"failed.")
to include("depends on croniter (==0.3.26) which doesn't match any versions")
end
end
end
Expand Down Expand Up @@ -294,8 +292,9 @@
it "raises a helpful error" do
expect { subject }.
to raise_error(Dependabot::DependencyFileNotResolvable) do |error|
puts error.message
expect(error.message).
to include("depends on black (^18) which doesn't match any")
to include("depends on black (>=18,<19) which doesn't match any versions")
end
end
end
Expand Down

0 comments on commit 1138e3e

Please sign in to comment.