-
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,10 @@ To run tests locally: | |
- Clone the repo: `git clone https://github.com/vvaezian/metabase_api_python.git` | ||
- Go to the repo directory: `cd metabase_api_python` | ||
- Run the initial setup for the desired Metabase version: `./tests/initial_setup.sh -v 0.45.2.1` | ||
This will download the Metabase jar file, runs it, creates an admin user, creates some collections/cards/dashboards which will be used during unittest (you can login to this local Metabase by browsing 'http://localhost:3000' after the command has finished processing, and entering email: '[email protected]' and password 'xzy12345') | ||
- Run the unittests: `python3 -m unittest tests/test_metabase_api.py` | ||
This will download the Metabase jar file, runs it in the background, creates an admin user, creates some collections/cards/dashboards which will be used during unittest | ||
- Run the unittests: `python3 -m unittest tests/test_metabase_api.py` | ||
|
||
|
||
After `initial_setup.sh` is finished, you can login to the running local Metabase by browsing 'http://localhost:3000' and entering email: '[email protected]' and password 'xzy12345' | ||
|
||
![metabase](data/metabase.png) |