Skip to content

Commit

Permalink
Skip tests if psycogp2-binary is not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
bonicim committed Aug 7, 2020
1 parent 010324f commit 7f16a2d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions volttrontesting/platform/dbutils/test_postegresql_timescaledb.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,15 @@

from time import time

from psycopg2.sql import SQL, Identifier
import pytest
import psycopg2
try:
import psycopg2
from psycopg2.sql import SQL, Identifier
except ImportError:
pytest.skip(
"Required imports for testing are not installed; thus, not running tests.",
allow_module_level=True,
)

from volttron.platform.dbutils.postgresqlfuncts import PostgreSqlFuncts
from volttrontesting.fixtures.docker_wrapper import create_container
Expand Down

0 comments on commit 7f16a2d

Please sign in to comment.