Skip to content

Commit

Permalink
SNOW-270946: added percentage unit test to skip old driver (#640)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-cshi authored Mar 1, 2021
1 parent 74da1c5 commit dee5734
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/unit/test_put_get.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
SnowflakeAzureProgressPercentage,
SnowflakeFileTransferAgent,
SnowflakeS3ProgressPercentage,
percent,
)


Expand Down Expand Up @@ -81,8 +80,10 @@ def test_put_error(tmpdir):
chmod(file1, 0o700)


@pytest.mark.skipolddriver
def test_percentage(tmp_path):
"""Tests for ProgressPercentage classes."""
from snowflake.connector.file_transfer_agent import percent
assert 1.0 == percent(0, 0)
assert 1.0 == percent(20, 0)
assert 1.0 == percent(40, 20)
Expand Down

0 comments on commit dee5734

Please sign in to comment.