<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/rdflib.git/test/test_issue363.py, branch sdo-https</title>
<subtitle>github.com: rdflib/rdflib.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/rdflib.git/'/>
<entry>
<title>Migrate from nosetest to pytest</title>
<updated>2021-10-24T14:28:54+00:00</updated>
<author>
<name>Iwan Aucamp</name>
<email>aucampia@gmail.com</email>
</author>
<published>2021-10-24T14:19:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/rdflib.git/commit/?id=c2a37b70b9ca7158996f59437ae193dd7c421316'/>
<id>c2a37b70b9ca7158996f59437ae193dd7c421316</id>
<content type='text'>
This patch replace all uses of nose with pytest. It also includes a
pytest plugin for creating EARL reports for tests with a `rdf_test_uri`
parameter.

Some caveats:

- HTML report directory is now htmlcov instead of coverage
- There is some warning related to the EARL reporting plugin which I can't quite figure out:
  ```
  .venv/lib64/python3.7/site-packages/_pytest/config/__init__.py:676
    /home/iwana/sw/d/github.com/iafork/rdflib/.venv/lib64/python3.7/site-packages/_pytest/config/__init__.py:676: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: test.earl
      self.import_plugin(import_spec)
  ```
  This is not causing any problems as far as I can tell, but still annoying.
- python setup.py test won't work anymore, I can make it work but this
  is not advised by pytest:
  https://github.com/pytest-dev/pytest-runner/#deprecation-notice
- run_test.py is still there but it's not really referenced anymore from
  anywhere and the options it accepts are completely different as it's options
  were based on nose. I would say it should be removed entirely but for now
  it is basically just a wrapper around pytest that basically does nothing.
- Removed references to test attributes as currently they are not being
  used anywhere anyway, I guess we can add them back if there is some
  use for them later.
- A lot of tests are still marked to skip when really they should be marked
  with xfail. This is also affecting the RDFT test manifests and result in
  reports saying tests are skipped when really we know they will fail and
  they are only skipped for this reason. But there is no change here from
  before, and pytest makes it easier to dynamically do expected failures.

Special thanks to Wes Turner for his advice and inputs on this process.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch replace all uses of nose with pytest. It also includes a
pytest plugin for creating EARL reports for tests with a `rdf_test_uri`
parameter.

Some caveats:

- HTML report directory is now htmlcov instead of coverage
- There is some warning related to the EARL reporting plugin which I can't quite figure out:
  ```
  .venv/lib64/python3.7/site-packages/_pytest/config/__init__.py:676
    /home/iwana/sw/d/github.com/iafork/rdflib/.venv/lib64/python3.7/site-packages/_pytest/config/__init__.py:676: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: test.earl
      self.import_plugin(import_spec)
  ```
  This is not causing any problems as far as I can tell, but still annoying.
- python setup.py test won't work anymore, I can make it work but this
  is not advised by pytest:
  https://github.com/pytest-dev/pytest-runner/#deprecation-notice
- run_test.py is still there but it's not really referenced anymore from
  anywhere and the options it accepts are completely different as it's options
  were based on nose. I would say it should be removed entirely but for now
  it is basically just a wrapper around pytest that basically does nothing.
- Removed references to test attributes as currently they are not being
  used anywhere anyway, I guess we can add them back if there is some
  use for them later.
- A lot of tests are still marked to skip when really they should be marked
  with xfail. This is also affecting the RDFT test manifests and result in
  reports saying tests are skipped when really we know they will fail and
  they are only skipped for this reason. But there is no change here from
  before, and pytest makes it easier to dynamically do expected failures.

Special thanks to Wes Turner for his advice and inputs on this process.
</pre>
</div>
</content>
</entry>
<entry>
<title>improved Graph().parse()</title>
<updated>2020-08-13T14:07:44+00:00</updated>
<author>
<name>Nicholas Car</name>
<email>nicholas.car@surroundaustralia.com</email>
</author>
<published>2020-08-13T14:07:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/rdflib.git/commit/?id=3e42f5eea742563cdeab7d655fe55f7d0e25ea16'/>
<id>3e42f5eea742563cdeab7d655fe55f7d0e25ea16</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>blacked all python files</title>
<updated>2020-05-16T11:00:24+00:00</updated>
<author>
<name>Nicholas Car</name>
<email>nicholas.car@surroundaustralia.com</email>
</author>
<published>2020-05-16T11:00:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/rdflib.git/commit/?id=0be6f6039479ce29cf71b11e76be54e186130036'/>
<id>0be6f6039479ce29cf71b11e76be54e186130036</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>a slightly opinionated autopep8 run</title>
<updated>2018-10-30T14:38:42+00:00</updated>
<author>
<name>Gunnar Aastrand Grimnes</name>
<email>gromgull@gmail.com</email>
</author>
<published>2018-10-30T13:21:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/rdflib.git/commit/?id=785e37932e71a02ab8c31257694060f550ff72a6'/>
<id>785e37932e71a02ab8c31257694060f550ff72a6</id>
<content type='text'>
opinions is mainly: no to long lines, but not at any cost.

notation3.py crashses autopep :D

Also rdflib/__init__.py gets completely broken
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
opinions is mainly: no to long lines, but not at any cost.

notation3.py crashses autopep :D

Also rdflib/__init__.py gets completely broken
</pre>
</div>
</content>
</entry>
<entry>
<title>cleanup test-skipping</title>
<updated>2018-10-30T10:29:55+00:00</updated>
<author>
<name>Gunnar Aastrand Grimnes</name>
<email>gromgull@gmail.com</email>
</author>
<published>2018-10-30T10:29:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/rdflib.git/commit/?id=668de4f52f490b13345030f215a2b44595fa0038'/>
<id>668de4f52f490b13345030f215a2b44595fa0038</id>
<content type='text'>
mainly remove old skips for pypy/java
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
mainly remove old skips for pypy/java
</pre>
</div>
</content>
</entry>
<entry>
<title>converted all tests</title>
<updated>2017-01-30T16:43:04+00:00</updated>
<author>
<name>Gunnar Aastrand Grimnes</name>
<email>gromgull@gmail.com</email>
</author>
<published>2016-11-21T15:37:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/rdflib.git/commit/?id=c267023ff0a1e89e511ea0b5d138ffcae059444b'/>
<id>c267023ff0a1e89e511ea0b5d138ffcae059444b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>reactivate exception test for broken rdfxml #363</title>
<updated>2014-03-03T14:37:25+00:00</updated>
<author>
<name>Jörn Hees</name>
<email>dev@joernhees.de</email>
</author>
<published>2014-03-03T14:37:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/rdflib.git/commit/?id=d34519a572e53fd2d89804fd5c04c519d9e56942'/>
<id>d34519a572e53fd2d89804fd5c04c519d9e56942</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fixed unit test - fixes #363 again :)</title>
<updated>2014-03-03T11:47:43+00:00</updated>
<author>
<name>Gunnar Aastrand Grimnes</name>
<email>gromgull@gmail.com</email>
</author>
<published>2014-03-03T11:47:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/rdflib.git/commit/?id=6f178712e47db2f4db2469595e9a9827d3221422'/>
<id>6f178712e47db2f4db2469595e9a9827d3221422</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Skip broken test, added test for parseTypeCollection</title>
<updated>2014-03-03T06:49:17+00:00</updated>
<author>
<name>Gunnar Aastrand Grimnes</name>
<email>gromgull@gmail.com</email>
</author>
<published>2014-03-03T06:48:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/rdflib.git/commit/?id=1c057101c870fcd94e6b581386af2d16167b3d3b'/>
<id>1c057101c870fcd94e6b581386af2d16167b3d3b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Raise exception for repeat node-object in rdf/xml parser. Test + fixes #363</title>
<updated>2014-03-02T09:38:51+00:00</updated>
<author>
<name>Gunnar Aastrand Grimnes</name>
<email>gromgull@gmail.com</email>
</author>
<published>2014-03-02T09:38:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/rdflib.git/commit/?id=553cc1c84b2e6bcb00f91a56b3bf742eedb855bf'/>
<id>553cc1c84b2e6bcb00f91a56b3bf742eedb855bf</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
