Skip to content

Commit

Permalink
update testing naming convention
Browse files Browse the repository at this point in the history
  • Loading branch information
mdp0023 committed Apr 29, 2024
1 parent 2de7bab commit 1b0160f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 14 deletions.
24 changes: 12 additions & 12 deletions examples/svinsight_example_Travis_County.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@


# import package
from SVInsight import SVInsight as svi
from svinsight import SVInsight as svi
import matplotlib.pyplot as plt

# # set variables
# project_name = 'Travis_County'
# file_path = "/Users/matthewpreisser/Documents/Research/Codes/SVInsight"
# api_key = os.environ.get('API_KEY')
# geoids = ['48453']

# # create instance
# test = svi(project_name = project_name,
# file_path = file_path,
# api_key = api_key,
# geoids=geoids)
# set variables
project_name = 'Travis_County'
file_path = "/Users/matthewpreisser/Documents/Research/Codes/SVInsight"
api_key = os.environ.get('API_KEY')
geoids = ['48453']

# create instance
test = svi(project_name = project_name,
file_path = file_path,
api_key = api_key,
geoids=geoids)

# # set the boundary and year variables
# boundary='bg'
Expand Down
12 changes: 10 additions & 2 deletions tests/test_svinsight.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@

import sys
sys.path.insert(0, '/Users/matthewpreisser/Documents/Research/Codes/SVInsight')
s
# Get the directory that contains this file
this_directory = os.path.dirname(os.path.abspath(__file__))

# Get the root directory of your project (two levels up from this file)
root_directory = os.path.dirname(os.path.dirname(this_directory))

# Add the root directory to sys.path
sys.path.insert(0, root_directory)

# import package
from SVInsight import SVInsight as svi
from svinsight import SVInsight as svi
import os
import pytest
import geopandas as gpd
Expand Down

0 comments on commit 1b0160f

Please sign in to comment.