Skip to content

Commit

Permalink
Metabase client params
Browse files Browse the repository at this point in the history
  • Loading branch information
gouline committed Dec 15, 2023
1 parent a5bfdfa commit f45e6e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 1 addition & 3 deletions dbtmetabase/metabase.py
Original file line number Diff line number Diff line change
Expand Up @@ -773,9 +773,7 @@ def __init__(
http_adapter (Optional[HTTPAdapter], optional): Custom requests HTTP adapter. Defaults to None.
"""

self.url = url
if self.url.endswith("/"):
self.url = self.url[:-1]
self.url = url.rstrip("/")

self.http_timeout = http_timeout

Expand Down
5 changes: 2 additions & 3 deletions tests/utils_mb_test_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
from dbtmetabase.dbt import MetabaseColumn, MetabaseModel, ModelType
from dbtmetabase.metabase import MetabaseClient

mbc = MetabaseClient(
client = MetabaseClient(
url="http://localhost:3000",
username="...",
password="...",
session_id="...",
)

logging.basicConfig(level=logging.DEBUG)
Expand Down

0 comments on commit f45e6e8

Please sign in to comment.