Skip to content

Updated odm2api module path calls in tests/test_odm2 modules to remove deprecated use of ODM2 module hierarchy #171

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/test_SessionFactory.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import (absolute_import, division, print_function)

from odm2api.ODM2.models import CVElevationDatum, setSchema
from odm2api.ODMconnection import SessionFactory
from odm2api.models import CVElevationDatum, setSchema

import pytest

Expand All @@ -15,10 +15,10 @@
['mysql"root@Localhost/odm2', 'mysql', 'mysql+pymysql://root@localhost/odm2'],
['postgresql_marchantariats_none', 'postgresql',
'postgresql+psycopg2://postgres:None@localhost/marchantariats',
'marchantariats', 'postgres', None],
'marchantariats', 'postgres', None],
['postgresql_marchantariats_empty', 'postgresql',
'postgresql+psycopg2://postgres@localhost/marchantariats',
'marchantariats', 'postgres', None],
'marchantariats', 'postgres', None],
['sqlite_wof', 'sqlite', 'sqlite:///./tests/spatialite/wof2odm/ODM2.sqlite', None, None, None]
]

Expand Down
4 changes: 2 additions & 2 deletions tests/test_connection.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import (absolute_import, division, print_function)

from odm2api.ODM2.models import CVElevationDatum
from odm2api.ODMconnection import dbconnection
from odm2api.models import CVElevationDatum

import pytest

Expand All @@ -13,7 +13,7 @@
dbs_readonly = [
['mysql_odm2_odm', 'mysql', 'localhost', 'odm2', 'ODM', 'odm'],
['mysql_odm2_root', 'mysql', 'localhost', 'odm2', 'root', None],
['postgresql_marchantariats', 'postgresql', 'localhost', 'marchantariats', 'postgres', 'iforget'],
['postgresql_marchantariats', 'postgresql', 'localhost', 'marchantariats', 'postgres', 'iforget'],
['sqlite_wof', 'sqlite', './tests/spatialite/wof2odm/ODM2.sqlite', None, None, None]
]

Expand Down
4 changes: 2 additions & 2 deletions tests/test_odm2/test_createservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
import uuid
from os.path import abspath, dirname, join

from odm2api.ODM2 import models
from odm2api.ODM2.services.createService import CreateODM2
from odm2api import models
from odm2api.ODMconnection import dbconnection
from odm2api.services.createService import CreateODM2

import pytest
# run this test from the root directory using:
Expand Down
4 changes: 2 additions & 2 deletions tests/test_odm2/test_model.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import (absolute_import, division, print_function)

from odm2api.ODM2.models import (CVElevationDatum, CVSamplingFeatureGeoType,
CVSamplingFeatureType, SamplingFeatures)
from odm2api.models import (CVElevationDatum, CVSamplingFeatureGeoType,
CVSamplingFeatureType, SamplingFeatures)

import pytest

Expand Down
11 changes: 6 additions & 5 deletions tests/test_odm2/test_odm2.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
from __future__ import (absolute_import, division, print_function)

from odm2api.ODM2.models import Methods, Models, People, ProcessingLevels, RelatedModels, Variables
from odm2api.ODM2.services.createService import CreateODM2
from odm2api.ODM2.services.deleteService import DeleteODM2
from odm2api.ODM2.services.readService import ReadODM2
from odm2api.ODM2.services.updateService import UpdateODM2
from odm2api.ODMconnection import dbconnection
from odm2api.models import (Methods, Models, People,
ProcessingLevels, RelatedModels, Variables)
from odm2api.services.createService import CreateODM2
from odm2api.services.deleteService import DeleteODM2
from odm2api.services.readService import ReadODM2
from odm2api.services.updateService import UpdateODM2

import pytest

Expand Down