Skip to content

Commit eb71fa1

Browse files
committed
Removing nose.collector reference from setup.py
- Also removing reference in README.md - Changing the example tox test command to an env we actually still have
1 parent 1537a5c commit eb71fa1

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ class SQLASQLiteGraphTestCase(unittest.TestCase):
6363
uri = Literal("sqlite://")
6464

6565
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)
6867
self.graph.open(self.uri, create=True)
6968

7069
def tearDown(self):
@@ -84,17 +83,18 @@ if __name__ == '__main__':
8483

8584
Running the tests
8685
=================
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.
9090

91-
Using nose::
91+
Using pytest::
9292

93-
DB='pgsql' DBURI='postgresql+psycopg2://user:password@host/dbname' nosetests
93+
DB='pgsql' DBURI='postgresql+psycopg2://user:password@host/dbname' pytest
9494

9595
Using tox::
9696

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
9898

9999
DB variants are 'pgsql', 'mysql' and 'sqlite'. Except in the case of SQLite,
100100
you'll need to create the database independently, before execution of the test.

pytest.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
norecursedirs = .git env
77

88
# Output in color, run doctests
9-
addopts = --color=yes --doctest-glob=README.md --doctest-modules
9+
addopts = --color=yes
1010

1111
testpaths = test
1212
# Run tests from files matching this glob

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
"six>=1.10.0",
5151
"SQLAlchemy>=1.1.4",
5252
],
53-
test_suite="nose.collector",
5453
entry_points={
5554
'rdf.plugins.store': [
5655
'SQLAlchemy = rdflib_sqlalchemy.store:SQLAlchemy'

0 commit comments

Comments
 (0)