<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/rdflib.git/test/test_swap_n3.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>Add mypy to CI pipelines and fix errors it raises</title>
<updated>2021-05-29T22:53:46+00:00</updated>
<author>
<name>Iwan Aucamp</name>
<email>aucampia@gmail.com</email>
</author>
<published>2021-05-29T22:53:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/rdflib.git/commit/?id=8e27d1915e3babd766c89a92109452554e568e14'/>
<id>8e27d1915e3babd766c89a92109452554e568e14</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>removal of all uses of package six</title>
<updated>2020-05-16T10:57:03+00:00</updated>
<author>
<name>Nicholas Car</name>
<email>nicholas.car@surroundaustralia.com</email>
</author>
<published>2020-05-16T10:57:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/rdflib.git/commit/?id=2a8d70824e1b4caf0c606074a44ac3a15fa72718'/>
<id>2a8d70824e1b4caf0c606074a44ac3a15fa72718</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>Merge from dzinxed.</title>
<updated>2012-09-23T15:02:23+00:00</updated>
<author>
<name>Gunnar Aastrand Grimnes</name>
<email>gromgull@gmail.com</email>
</author>
<published>2012-09-23T15:02:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/rdflib.git/commit/?id=c0330e9cc62bc6977d42824db50e2e5dbef58f0e'/>
<id>c0330e9cc62bc6977d42824db50e2e5dbef58f0e</id>
<content type='text'>
Fixes #232
I picked my changes over yours when we collided for purely selfish reasons, sorry :)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes #232
I picked my changes over yours when we collided for purely selfish reasons, sorry :)
</pre>
</div>
</content>
</entry>
<entry>
<title>Added doctest to utility function</title>
<updated>2012-09-23T08:47:17+00:00</updated>
<author>
<name>Łukasz Jancewicz</name>
<email>dzinxed@gmail.com</email>
</author>
<published>2012-09-23T08:47:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/rdflib.git/commit/?id=446ee62978f526e3dd506d036edc0e2fe8a1552e'/>
<id>446ee62978f526e3dd506d036edc0e2fe8a1552e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Better fix for swap_n3 tests</title>
<updated>2012-09-23T08:26:50+00:00</updated>
<author>
<name>Łukasz Jancewicz</name>
<email>dzinxed@gmail.com</email>
</author>
<published>2012-09-23T08:26:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/rdflib.git/commit/?id=d643a8e2c21fc00c388fc4d1ab0c27a6017477c9'/>
<id>d643a8e2c21fc00c388fc4d1ab0c27a6017477c9</id>
<content type='text'>
Fix from 5d110567b1d3a315f1c3a3bb6b8a1465d14d5799 broke the file URI
scheme, reverted and added a better fix to the tests.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix from 5d110567b1d3a315f1c3a3bb6b8a1465d14d5799 broke the file URI
scheme, reverted and added a better fix to the tests.
</pre>
</div>
</content>
</entry>
<entry>
<title>deepcopy not available in Python2.4, workaround.</title>
<updated>2012-02-19T12:08:53+00:00</updated>
<author>
<name>Graham Higgins</name>
<email>gjh-github@bel-epa.com</email>
</author>
<published>2012-02-19T12:08:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/rdflib.git/commit/?id=0bfb02e2c44d4a33fd95363fb6ec51cc4c819d6e'/>
<id>0bfb02e2c44d4a33fd95363fb6ec51cc4c819d6e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Restore support for Python 2.4</title>
<updated>2012-01-12T14:14:14+00:00</updated>
<author>
<name>Graham Higgins</name>
<email>gjh@bel-epa.com</email>
</author>
<published>2012-01-12T14:14:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/rdflib.git/commit/?id=18becdc5fc0c852658861ffb2ea8df39a1aed25b'/>
<id>18becdc5fc0c852658861ffb2ea8df39a1aed25b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
