@@ -63,8 +63,7 @@ class SQLASQLiteGraphTestCase(unittest.TestCase):
63
63
uri = Literal(" sqlite://" )
64
64
65
65
def setUp (self ):
66
- store = plugin.get(" SQLAlchemy" , Store)(identifier = self .ident)
67
- self .graph = Graph(store, identifier = self .ident)
66
+ self .graph = Graph(" SQLAlchemy" , identifier = self .ident)
68
67
self .graph.open(self .uri, create = True )
69
68
70
69
def tearDown (self ):
@@ -84,17 +83,18 @@ if __name__ == '__main__':
84
83
85
84
Running the tests
86
85
=================
87
- ` nose ` and ` tox ` are supported as test runners. Select the SQL back-end by
88
- setting a ` DB ` environment variable. Select the database connection by setting
89
- the ` DBURI ` variable. With ` tox ` , you can also specify the Python version.
86
+ ` pytest ` is supported as a test runner, typically called via ` tox ` . Select the
87
+ SQL back-end by setting a ` DB ` environment variable. Select the database
88
+ connection by setting the ` DBURI ` variable. With ` tox ` , you can also specify
89
+ the Python version.
90
90
91
- Using nose ::
91
+ Using pytest ::
92
92
93
- DB='pgsql' DBURI='postgresql+psycopg2://user:password@host/dbname' nosetests
93
+ DB='pgsql' DBURI='postgresql+psycopg2://user:password@host/dbname' pytest
94
94
95
95
Using tox::
96
96
97
- DB='pgsql' DBURI='postgresql+psycopg2://user:password@host/dbname' tox -e py36
97
+ DB='pgsql' DBURI='postgresql+psycopg2://user:password@host/dbname' tox -e py310
98
98
99
99
DB variants are 'pgsql', 'mysql' and 'sqlite'. Except in the case of SQLite,
100
100
you'll need to create the database independently, before execution of the test.
0 commit comments