-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
20 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,32 @@ | ||
from bincrafters_conan_remote.test.helpers import cli_command | ||
|
||
import pytest | ||
import time | ||
|
||
|
||
def test_download_revision_latest(): | ||
print("Sleeping for 25 seconds...") | ||
time.sleep(25) | ||
cli_command( | ||
["conan", "download", "-r", "inexorgame", "--recipe", "InexorGlueGen/0.6.11@inexorgame/stable"], | ||
expected_outputs=[ | ||
"Downloading conanmanifest.txt", | ||
"Downloading conanfile.py", | ||
"Downloading conan_sources.tgz"] | ||
) | ||
|
||
def test_download_revision_specific(): | ||
cli_command( | ||
["conan", "download", "-r", "inexorgame", "--recipe", "grpc/1.34.1@inexorgame/stable#0"], | ||
expected_outputs=[ | ||
"Downloading conanmanifest.txt", | ||
"Downloading conanfile.py", | ||
"Downloading conan_sources.tgz"] | ||
) | ||
|
||
|
||
def test_download_no_explicit_remote(): | ||
cli_command( | ||
["conan", "download", "--recipe", "v8/7.6.66@inexorgame/testing"], | ||
expected_outputs=[ | ||
"Downloading conanmanifest.txt", | ||
"Downloading conanfile.py", | ||
"Downloading conan_sources.tgz"] | ||
) |