-
Notifications
You must be signed in to change notification settings - Fork 424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix tests configuration #294
Conversation
…run CLI tests. This way, you don't need to rebuild package when you make changes.
if which_grip.returncode: | ||
cmd = ['python', 'grip/__main__.py'] + list(args) | ||
else: | ||
cmd = [command] + list(args) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test_cli
is intended to be an "end-to-end" test. So installing with pip install -e .[tests]
is a prerequisite for running the tests. No need to add a conditional here.
Thanks for the PR, @Methacrylon! Happy to get the |
I went ahead and pulled in your pytest change. Closing this, but still crediting you for fixing the |
- Fix "ImportError: cannot import name 'safe_join' from 'flask'" when using Flask 2.1.0+ ([#360](joeyespo/grip#360) - thanks, [@bryce-carson][]!) - Update output and **fix style issues** - Add support for **Python 3.7, 3.8, 3.9, 3.10** - Improve handling of PDFs and other binary files - Fix deprecation warnings from newer dependency versions - End-of-life [Python versions](https://devguide.python.org/#status-of-python-branches) no longer intentionally supported - Python 2.6, 2.7 (Python 2 compatibility will be removed entirely in the next major release) - Python 3.0, 3.1, 3.2, 3.3 ([#275](joeyespo/grip#275) - thanks, [@svisser][]!), 3.4, 3.5, 3.6 - Current [dependency versions](requirements.txt) (more recent versions will be required in the next major release) - Fix typo in error message ([#266](joeyespo/grip#266) - thanks, [@Godron629][]!) - Update HTML/CSS scaffold to match GitHub ([#297](joeyespo/grip#297) - thanks, [@phyllisstein][]!) - Fix tests by adding a missing `USER_CONTEXT` argument to one of the `GitHubRenderer` calls - Serve non-`text/` MIME types as raw files for better handling of, e.g. PDF files ([#234](joeyespo/grip#234) - thanks, [@wvspee][]!) - Fix style parsing, which caused some styles to be missing ([#347](joeyespo/grip#347)) - Readme: Update to correct `--no-inline` option ([#267](joeyespo/grip#267) - thanks, [@TomDLT][]!) - Readme: Fix links to Grip class ([#276](joeyespo/grip#276) - thanks, [@jacebrowning][]!) - Readme: Clarify that this sends your markdown to GitHub ([#251](joeyespo/grip#251) - thanks, [@courajs][]!) - Update `pytest` usages (see [pytest 3.0.0 changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst#300-2016-08-18)) - Add `.pytest_cache` to `.gitignore` ([#287](joeyespo/grip#287) - thanks, [@svisser][]!) - Add `.venv` and `.idea` to `.gitignore` and clean up - Add `flake8` test dependency and fix linting errors ([#299](joeyespo/grip#299)) - Add `pytest` test dependency ([#294](joeyespo/grip#294) - thanks, [@Methacrylon][]!) - License: Distribute LICENSE file ([#274](joeyespo/grip#274) - thanks, [@synapticarbors][]!) - License: Update year
Various minor fixes
Add pytest to requirements-test.txt file
Fix tests_cli : if grip package is not installed, use
python grip/__main__.py
to run cli testsRegenerate HTML content for tests