diff --git a/pyproject.toml b/pyproject.toml index f4b342f..61447c9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "sloyka" -version = "0.1.8" +version = "0.2" description = "Library for city identity analysis from social media posts and comments" authors = ["sandrro, georgekontsevik"] readme = "README.md" diff --git a/tests/test_semantic_graph.py b/tests/test_semantic_graph.py index 3682a05..0d68b9d 100644 --- a/tests/test_semantic_graph.py +++ b/tests/test_semantic_graph.py @@ -1,10 +1,14 @@ +import sys +import os +sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "../sloyka/sample_data"))) import geopandas as gpd import pytest from sloyka import Semgraph @pytest.fixture def sample_data(): - gdf = gpd.read_parquet("sloyka\sample_data\sample_data_geocoded_emotioned.parquet") + sample_data_path = os.path.join(os.path.dirname(__file__), "../sloyka/sample_data/sample_data_geocoded_emotioned.parquet") + gdf = gpd.read_parquet(sample_data_path) gdf['type'] = 'post' return gdf