Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Fix the test suite #2

Closed
wants to merge 7 commits into from
Closed

Fix the test suite #2

wants to merge 7 commits into from

Conversation

adamserafini
Copy link

@adamserafini adamserafini commented Oct 29, 2016

As noted in the current README, there is no documented way of running the full test suite. In fact there's never been a script for running the full suite: what happened is that the original script pyxl_tests.py was renamed and then more tests were added but without any instructions.

This PR aims to fix that, plus a few other problems:

  1. Tests are written in two different styles: the new tests are written using plain assert. Old tests have been cleaned up to be consistent with that.
  2. Some of the tests were broken in Python 3 - PyxlParser has been fixed and the tests now pass.
  3. Update README with documentation for running the full test suite.

META:

This PR is being made from an organisation called pyxl3 that I created specifically to make these changes. I had to do this because I already made a similar PR to the original pyxl link and GitHub wouldn't let me then fork your fork whilst having a fork of the original pyxl at the same time (ugh).

However, this might present an opportunity to improve the contributor experience for this project. @gvanrossum would you be happy if the repo at pyxl3/pyxl3 becomes the 'official' Python 3 port of pyxl3? You can, of course, be a full admin member of this organisation. I would then request with GitHub to turn the repo from a fork to a standalone repo.

The motivation on my side is that I would like to give this project some 'love'. Here are some ways I'd like to work on improving it:

  • Enable issues (at the moment we don't have an issue tracker enabled).
  • Add test coverage, build status badges etc.
  • Address any gaps in test coverage
  • Put the whole project through a linter (I notice some PEP8 violations).
  • Speed / test benchmarks
  • Incorporate optimisations from the original pyxl project, eg link
  • Use tox to run tests over multiple versions of Python 3.
  • Rework the documentation: and host the docs on pyxl3.github.io.
  • Setup on PyPI so users can just pip install pyxl3 instead of cloning from GitHub.
  • And, maybe, backport compatibility to Python 2.

This test contained a Python 2 print statement with no brackets.
Also took the opportunity to simplify the tests and stop pytest
complaining.
Fix failing tests by changing the PyxlParser to use the str method
instead of the deprecated unicode method when parsing HTML attributes.
Rewrite tests/test_basic.py to be more similar to the other
test files in the test directory. Instead of using unittest,
tests are just asserts in functions that can be run by pytest.
Rewrite tests/test_rss.py to be more similar to the other
test files in the test directory. Instead of using unittest,
tests are just asserts in functions that can be run by pytest.
@gvanrossum
Copy link
Owner

gvanrossum commented Oct 29, 2016 via email

@adamserafini
Copy link
Author

No worries at all. Thanks for getting back to me. Should I assume you won't be reviewing or accepting this PR and your fork is basically 'unmaintained'?

@gvanrossum
Copy link
Owner

gvanrossum commented Oct 29, 2016 via email

@gvanrossum gvanrossum closed this Jun 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants