from ..geoparse import Geoparser
import pytest

import spacy
nlp = spacy.load('en_core_web_lg', disable=['parser', 'tagger'])

@pytest.fixture(scope='session', autouse=True)
def geo():
    return Geoparser(nlp=nlp, threads=False, models_path = "/Users/ahalterman/MIT/Geolocation/mordecai_new/mordecai/mordecai/models/")

@pytest.fixture(scope='session', autouse=True)
def geo_thread():
    return Geoparser(nlp=nlp, threads=True, models_path = "/Users/ahalterman/MIT/Geolocation/mordecai_new/mordecai/mordecai/models/")

from ..geoparse import Geoparser
import pytest

import spacy
nlp = spacy.load('en_core_web_lg', disable=['parser', 'tagger'])

@pytest.fixture(scope='session', autouse=True)
def geo():
    return Geoparser(nlp=nlp, threads=False)

@pytest.fixture(scope='session', autouse=True)
def geo_thread():
    return Geoparser(nlp=nlp, threads=True)

Remove hardcoded paths from testing
Remove hardcoded paths from testing

  from ..geoparse import Geoparser
  import pytest
  
  import spacy
  nlp = spacy.load('en_core_web_lg', disable=['parser', 'tagger'])
  
  @pytest.fixture(scope='session', autouse=True)
  def geo():
-     return Geoparser(nlp=nlp, threads=False, models_path = "/Users/ahalterman/MIT/Geolocation/mordecai_new/mordecai/mordecai/models/")
+     return Geoparser(nlp=nlp, threads=False)
  
  @pytest.fixture(scope='session', autouse=True)
  def geo_thread():
-     return Geoparser(nlp=nlp, threads=True, models_path = "/Users/ahalterman/MIT/Geolocation/mordecai_new/mordecai/mordecai/models/")
+     return Geoparser(nlp=nlp, threads=True)
  
Remove hardcoded paths from testing
## Code Before:
from ..geoparse import Geoparser
import pytest

import spacy
nlp = spacy.load('en_core_web_lg', disable=['parser', 'tagger'])

@pytest.fixture(scope='session', autouse=True)
def geo():
    return Geoparser(nlp=nlp, threads=False, models_path = "/Users/ahalterman/MIT/Geolocation/mordecai_new/mordecai/mordecai/models/")

@pytest.fixture(scope='session', autouse=True)
def geo_thread():
    return Geoparser(nlp=nlp, threads=True, models_path = "/Users/ahalterman/MIT/Geolocation/mordecai_new/mordecai/mordecai/models/")

## Instruction:
Remove hardcoded paths from testing
## Code After:
from ..geoparse import Geoparser
import pytest

import spacy
nlp = spacy.load('en_core_web_lg', disable=['parser', 'tagger'])

@pytest.fixture(scope='session', autouse=True)
def geo():
    return Geoparser(nlp=nlp, threads=False)

@pytest.fixture(scope='session', autouse=True)
def geo_thread():
    return Geoparser(nlp=nlp, threads=True)
