Skip to content

Commit

Permalink
~ fix tests #2
Browse files Browse the repository at this point in the history
  • Loading branch information
hemnstill committed Nov 21, 2023
1 parent 4308b78 commit 175f6c3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
20 changes: 12 additions & 8 deletions poetry/test_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,16 @@ Resolving dependencies...
Package operations: 6 installs, 0 updates, 0 removals
• Installing certifi (2023.5.7)
• Installing charset-normalizer (3.1.0)
• Installing certifi (2023.11.17)
• Installing charset-normalizer (3.3.2)
• Installing idna (3.4)
• Installing urllib3 (1.26.16)
• Installing urllib3 (1.26.18)
• Installing mysqlclient (2.1.1)
• Installing requests (2.28.2)
Writing lock file'
Writing lock file
Installing the current project: StandaloneTools (1.0.0)'

test_version() {
assertEquals "Poetry (version 1.7.1)" "$(../bin/poetry.sh --version)"
Expand All @@ -51,12 +53,12 @@ test_version_plugins() {
Dependencies
- poetry (>=1.2.0,<2.0.0)
• poetry-plugin-export (1.4.0) Poetry plugin to export the dependencies to various formats
• poetry-plugin-export (1.6.0) Poetry plugin to export the dependencies to various formats
1 application plugin
Dependencies
- poetry (>=1.5.0,<2.0.0)
- poetry-core (>=1.6.0,<2.0.0)" "$(../bin/poetry.sh self show plugins)"
- poetry (>=1.6.0,<2.0.0)
- poetry-core (>=1.7.0,<2.0.0)" "$(../bin/poetry.sh self show plugins)"
}

test_install_from_symlink() {
Expand All @@ -74,7 +76,9 @@ test_install_from_sh() {

assertEquals "Installing dependencies from lock file
No dependencies to install or update" "$(../bin/poetry.sh install)"
No dependencies to install or update
Installing the current project: StandaloneTools (1.0.0)" "$(../bin/poetry.sh install --no-root)"
}

# Load and run shUnit2.
Expand Down
2 changes: 1 addition & 1 deletion poetry/test_windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ test_install_from_bat() {

assertEquals "Installing dependencies from lock file
No dependencies to install or update" "$(../bin/poetry.bat install | dos2unix)"
No dependencies to install or update" "$(../bin/poetry.bat install --no-root | dos2unix)"
}

# Load and run shUnit2.
Expand Down

0 comments on commit 175f6c3

Please sign in to comment.