forked from lux-org/lux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Global shared variable in test (lux-org#144) (lux-org#149)
* using global shared variable in test (lux-org#144) * modified fixture scope as session, resolved dependency test cases * run black Co-authored-by: Doris Lee <[email protected]>
- Loading branch information
1 parent
da79415
commit 21e20cf
Showing
19 changed files
with
301 additions
and
275 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 |
---|---|---|
|
@@ -10,5 +10,6 @@ static/ | |
*.egg-info* | ||
build/ | ||
.DS_Store | ||
.idea/ | ||
tests/.coverage | ||
tests/coverage.xml |
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
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import pytest | ||
import pandas as pd | ||
|
||
|
||
@pytest.fixture(scope="session") | ||
def global_var(): | ||
url = "https://github.com/lux-org/lux-datasets/blob/master/data/olympic.csv?raw=true" | ||
pytest.olympic = pd.read_csv(url) | ||
pytest.car_df = pd.read_csv("lux/data/car.csv") | ||
pytest.college_df = pd.read_csv("lux/data/college.csv") |
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
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
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
Oops, something went wrong.