Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
vvaezian committed Feb 21, 2023
1 parent 373c40c commit 64ab710
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 64ab710

Please sign in to comment.