Skip to content

Commit

Permalink
Update create_table rest with latest response
Browse files Browse the repository at this point in the history
  • Loading branch information
waddahAldrobi committed Mar 19, 2024
1 parent d5fe607 commit e3f6c98
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions tests/e2e/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,24 +236,32 @@ def test_upload_csv_success(self):
True,
)

@unittest.skip("This is a plus subscription endpoint.")
# @unittest.skip("This is a plus subscription endpoint.")
def test_create_table_success(self):
# Make sure the table doesn't already exist.
# You will need to change the namespace to your own.
client = DuneClient(self.valid_api_key)

namespace = "test"
table_name = "dataset_e2e_test"

self.assertEqual(
client.create_table(
namespace="test",
table_name="dataset_e2e_test",
namespace=namespace,
table_name=table_name,
description="e2e test table",
schema=[
{"name": "date", "type": "timestamp"},
{"name": "dgs10", "type": "double"},
],
is_private=False,
),
None,
{
"namespace": namespace,
"table_name": table_name,
"full_name": f"dune.{namespace}.{table_name}",
"example_query": f"select * from dune.{namespace}.{table_name} limit 10",
},
)

@unittest.skip("This is a plus subscription endpoint.")
Expand Down

0 comments on commit e3f6c98

Please sign in to comment.