Skip to content

Commit

Permalink
Tests: Add more download tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Croydon committed May 18, 2024
1 parent df76b21 commit 5eb24b5
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions bincrafters_conan_remote/test/test_download.py
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"]
)

0 comments on commit 5eb24b5

Please sign in to comment.