Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Jan 22, 2024
1 parent 72e6282 commit 20cb24e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions raster_loader/tests/bigquery/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ def test_bigquery_upload_multiple_bands_aligned_with_band_names(*args, **kwargs)


@patch("raster_loader.cli.bigquery.BigQuery.upload_raster", return_value=None)
@patch("raster_loader.cli.bigquery.BigQuery.__init__", return_value=None)
def test_bigquery_upload_no_table_name(*args, **kwargs):
runner = CliRunner()
result = runner.invoke(
Expand All @@ -158,6 +159,7 @@ def test_bigquery_upload_no_table_name(*args, **kwargs):
"raster_loader.io.bigquery.BigQuery.get_records",
return_value=pd.DataFrame.from_dict({"col_1": [1, 2], "col_2": ["a", "b"]}),
)
@patch("raster_loader.cli.bigquery.BigQuery.__init__", return_value=None)
def test_bigquery_describe(mocker):
runner = CliRunner()
result = runner.invoke(
Expand Down

0 comments on commit 20cb24e

Please sign in to comment.