Skip to content

Commit

Permalink
fix argument parser test
Browse files Browse the repository at this point in the history
  • Loading branch information
sattler committed Jan 17, 2023
1 parent ffb7916 commit 1fcd393
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
8 changes: 5 additions & 3 deletions tests/test_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,19 @@ def parquet_file():
'columns': [],
'file': ['file1.parquet'],
'head': -1,
'awsprofile': None
'awsprofile': None,
'endpoint_url': None
}
),
# most complex one
(
'--columns col1,col2 --head 100 --awsprofile user1 file1.parquet file2.parquet', True,
'--columns col1,col2 --head 100 --endpoint-url http://localhost:9000 --awsprofile user1 file1.parquet file2.parquet', True,
{
'columns': ['col1', 'col2'],
'file': ['file1.parquet', 'file2.parquet'],
'head': 100,
'awsprofile': 'user1'
'awsprofile': 'user1',
'endpoint_url': 'http://localhost:9000'
}
),
# empty columns
Expand Down
9 changes: 6 additions & 3 deletions tests/test_show.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ def parser():
'file': ['file1.parquet'],
'format': 'psql',
'head': -1,
'awsprofile': None
'awsprofile': None,
'endpoint_url': None
}
),
# most complex one
Expand All @@ -33,7 +34,8 @@ def parser():
'file': ['file1.parquet', 'file2.parquet'],
'format': 'github',
'head': 100,
'awsprofile': None
'awsprofile': None,
'endpoint_url': None
}
),
# file is on S3
Expand All @@ -44,7 +46,8 @@ def parser():
'file': ['s3://bucket-name/file1.parquet'],
'format': 'psql',
'head': -1,
'awsprofile': 'user1'
'awsprofile': 'user1',
'endpoint_url': None
}
),
# empty columns
Expand Down

0 comments on commit 1fcd393

Please sign in to comment.