summaryrefslogtreecommitdiff
path: root/taskflow/tests/test_examples.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove sixTakashi Kajinami2022-05-181-4/+1
| | | | | | | | This library no longer supports Python 2, thus usage of six can be removed. This also removes workaround about pickle library used in Python 2 only. Change-Id: I19d298cf0f402d65f0b142dea0bf35cf992332a9
* Fix order of assertEqual for unit.test_*lin-hua-cheng2015-10-171-1/+1
| | | | | | | First parameter should be the expected value. Change-Id: I2941296e38c3245da298cc64aeb5636fbc4b2eb6 Partial-Bug: #1357117
* Remove example not testedJoshua Harlow2015-06-101-1/+1
| | | | | | | | This example is not automatically tested and is better served by other examples involving conductors, jobs, and such so it doesn't seem to have much value to retain it. Change-Id: Idc622bb6e6098507c99758614a96feb6a8a9b0c8
* Use a metaclass to dynamically add testcases to example runnerJoshua Harlow2014-11-271-35/+46
| | | | | | | | Instead of using a custom update() mechanism just take advantage of a metaclass that can dynamically add our desired test functions on in a more pythonic manner. Change-Id: I8f4940f85dd7b5255c181795606ac76ca5605baa
* Cleanup some of the example code & docsJoshua Harlow2014-07-111-1/+1
| | | | | | | | | | | | | This commit makes a set of small adjustments to examples. - Rework some of the comments to be more clear. - Add links to the original source tree file. - Rename some of the examples to make it clear the concept the example is intented to show. - Move some common example functionality to the example utility file. Change-Id: I858e0dbf72fe8cb40a05bfdbb0857720ffb71c7f
* Upgrade hacking version and fix some of the issuesJoshua Harlow2014-06-131-2/+6
| | | | | | | | | | | | | | | | | Update hacking to the new requirements version and fix about half of the new reported issues. The other hacking issues are for now ignored until fixed by adjusting our tox.ini file. This commit fixes the following new hacking errors: H405 - multi line docstring summary not separated with an empty line E265 - block comment should start with '# ' F402 - import 'endpoint' from line 21 shadowed by loop variable Change-Id: I6bae61591fb988cc17fa79e21cb5f1508d22781c
* Docs and cleanups for test_examples runnerJoshua Harlow2014-04-261-10/+24
| | | | | | | | - Ensure test method name is safe to use - Add docs to explain what the functions are doing - Skip no_test files (as well as utils files) Change-Id: I5d0c9f354f1c5c7be36575a1e2288442a160129b
* Remove extraneous vim configuration commentsyangxurong2014-02-141-2/+0
| | | | | | | | | Remove line containing comment - # vim: tabstop=4 shiftwidth=4 softtabstop=4 Change-Id: I7581cc88b8de433d5609ed06c6570b0b45c13573 Closes-Bug:#1229324
* Doc strings and comments clean-upskudriashev2014-01-261-2/+2
| | | | | | | | * Added missing period for doc strings * Correct syntax errors * Remove H402 from flake8 ignore list Change-Id: Ia8592bf99378e3658d6cca2ceb148bf9eb0b5de8
* List examples function doesn't accept argumentsskudriashev2014-01-261-1/+1
| | | | Change-Id: Ic8d9e5b8918dd47190d7aa3b6cfbe281307fb1d2
* Minor cleanup in test_examplesIvan A. Melnikov2014-01-171-5/+13
| | | | | | | | - check process exit code instead of stderr emptiness; - in case of failure include stderr and stdout of example into exception message. Change-Id: I3957810c8ac0621bafa4eda85e089071d96c794e
* Add envs for different sqlalchemy versionsJoshua Harlow2014-01-091-7/+6
| | | | | | | | | | | | | Adjust tests to skip the sqlalchemy test if sqlalchemy is not installed. Adjust examples to fallback to a directory based backend if the sqlalchemy does not load or is not available. Include a updated tox.ini (generated from the toxgen.py script) that includes the new venv variations. Change-Id: I7686f09901a9b65d7c81b4e037b5bffc24aa7ef7
* Fix up python 3.3 incompatabilitiesJoshua Harlow2013-11-211-1/+1
| | | | | | | | | | | | Make the python 3.3 testing work by selectively disabling & including eventlet, switch to testtools and testrepository which has 2.6, 2.7, 3.2+ unified testing support so that we can correctly run our tests in all supported python versions. Closes-Bug: #1251660 Co-authored-by: Alexander Gorodnev <agorodnev@griddynamics.com> Change-Id: I23b6f04387cfd3bf6b5a044edffa446ca897ce3a
* Fix python3 compatibility issues in examplesIvan A. Melnikov2013-10-101-2/+3
| | | | Change-Id: I024207864668751455874cf3cb60de31cc01de87
* Check examples when running testsIvan A. Melnikov2013-08-271-0/+114
Add testcase that executes all examples from taskflow/examples directory. For examples with somewhat deterministic output the output is also checked. This commit also fixes couple of examples broken by recent decorators refactoring. Change-Id: I3e65eabde43e1dd26b442d8f7dd3f062bf80703d