| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Wrap content-type params in a dictionary | Matthew Treinish | 2023-03-10 | 1 | -1/+1 |
| | | |||||
| * | Replace deprecated `cgi` module usage with `email` | Matthew Treinish | 2023-02-06 | 1 | -2/+5 |
| | | | | | | | | | | | | In Python 3.11 the standard library `cgi` module was deprecated with a planned removal set for Python 3.13. In preparation for that removal, this commit removes the usage of this deprecated module and replaces it with the still supported standard library `email` module which is what the documentation points to as an alternative for how `cgi` was previously used. This should still be compatible with all the supported Python versions but will be more future proof and not emit any deprecation warnings with Python 3.11 anymore. | ||||
| * | Upgrade Python syntax with pyupgrade --py36-plus | Hugo van Kemenade | 2022-02-07 | 1 | -11/+11 |
| | | |||||
| * | Remove mimeparse dependency | Stephen Finucane | 2021-02-25 | 1 | -7/+19 |
| | | | | | | | We can do this ourselves quite easily. Signed-off-by: Stephen Finucane <stephen@that.guru> | ||||
| * | trivial: Cleanup imports | Stephen Finucane | 2021-02-25 | 1 | -3/+4 |
| | | | | | | | | This is kept separately from the reintroduction of 'try_imports' to keep that patch reasonable. Signed-off-by: Stephen Finucane <stephen@that.guru> | ||||
| * | Re-introduce 'try_imports' | Stephen Finucane | 2021-02-25 | 1 | -1/+1 |
| | | | | | | | | | | | | | There are few if any people still (knowingly) using the 'extras' lib. OpenStack users have their own implementation (sigh) in 'oslo.utils' and everyone else is getting by with try-except statements. Reintroduce this utility to 'testtools.helpers', allowing us to eventually drop the dependency on extras. Note however that we can't actually do this yet since 'fixtures' has an implicit dependency on 'extras' through 'testtools', and we break that by removing it here. Signed-off-by: Stephen Finucane <stephen@that.guru> | ||||
| * | Remove use of 'try_imports' | Stephen Finucane | 2021-02-25 | 1 | -3/+2 |
| | | | | | | | | | This was being used in places to handle differences between Python 2 and Python 3. Since we only care about the latter now, the utility can be removed. Signed-off-by: Stephen Finucane <stephen@that.guru> | ||||
| * | Remove use of 'safe_hasattr' | Stephen Finucane | 2021-02-25 | 1 | -4/+4 |
| | | | | | | | | | | | | | | This was used to workaround some issues with 'hasattr' on Python 2.x versions, discussed in the source for extras (where this utility was moved to make it more useful to others) [1] and elsewhere on the internet [2]. These issues are no longer present on the versions of Python we now support (Python 3.6+) so this is no longer necessary. [1] https://github.com/testing-cabal/extras/blob/1.0.0/extras/__init__.py#L101-L108 [2] https://hynek.me/articles/hasattr/ Signed-off-by: Stephen Finucane <stephen@that.guru> | ||||
| * | Upgrade Python syntax with pyupgrade --py3-plus | Hugo | 2020-01-18 | 2 | -69/+69 |
| | | |||||
| * | Remove redundant Python 2 compatability code | Hugo | 2020-01-18 | 1 | -17/+3 |
| | | |||||
| * | Upgrade Python syntax with pyupgrade | Hugo | 2020-01-18 | 1 | -13/+13 |
| | | |||||
| * | Spelling fixes (#261) | Ville Skyttä | 2017-05-29 | 1 | -1/+1 |
| | | |||||
| * | Add ResourcedToStreamDecorator test result decorator for testresources ↵ | Free Ekanayaka | 2017-04-11 | 3 | -6/+70 |
| | | | | | | integration (#243) This new decorator implements the TestResult protocol extension supported by test resources. For example, tt makes it possible to easily have resource-related events streamed to subunit. | ||||
| * | Don't add file details without content (#252) | Thomas Hervé | 2017-02-08 | 1 | -1/+1 |
| | | | | | | In the test record API, skip adding file details to the record if there are not bytes. This reduces that amount of data kept when there is none. | ||||
| * | Revert usage of pyrsistent | Thomas Herve | 2016-03-04 | 1 | -29/+34 |
| | | | | | | | | Remove the dependency on pyrsistent and make the _TestRecord class a simple obkect, as it has a pretty big performance hit. Closes #219 | ||||
| * | Support TestResults without stop/shouldStop | Jonathan Lange | 2016-02-04 | 2 | -14/+70 |
| | | | | | | | Twisted's IReporter contract doesn't specify `stop` or `shouldStop`. With this change, we can still meaningfully call `stop()` after adapting with `ExtendedToOriginalDecorator`. | ||||
| * | Fix typo: flexabilitytypo-flexability | Leo Arias | 2016-01-27 | 1 | -1/+1 |
| | | |||||
| * | Hide TestRecord and StreamToTestRecord | Jonathan Lange | 2015-11-12 | 1 | -20/+20 |
| | | | | | | While they are probably OK to be exposed, let's keep this patch minimal & not news-worthy | ||||
| * | Old-fashioned set syntax | Jonathan Lange | 2015-11-09 | 1 | -2/+2 |
| | | |||||
| * | Abstract text_or_bytes | Jonathan Lange | 2015-11-09 | 1 | -5/+5 |
| | | |||||
| * | Change PRecord to PClass | Jonathan Lange | 2015-11-09 | 1 | -2/+2 |
| | | | | | We don't want to accidentally iterate on TestRecord, say. | ||||
| * | Move test_dict_to_case near StreamToDict | Jonathan Lange | 2015-11-09 | 1 | -15/+15 |
| | | |||||
| * | Don't use StreamToDict internally | Jonathan Lange | 2015-11-09 | 1 | -9/+9 |
| | | |||||
| * | _streamer -> _hook | Jonathan Lange | 2015-11-09 | 1 | -8/+8 |
| | | |||||
| * | StreamSummary with composition, not inheritance | Jonathan Lange | 2015-11-09 | 1 | -2/+12 |
| | | |||||
| * | Extract StreamToTestRecord base class | Jonathan Lange | 2015-11-09 | 1 | -22/+68 |
| | | |||||
| * | Move _make_content_type closer to where it is used | Jonathan Lange | 2015-11-09 | 1 | -21/+21 |
| | | |||||
| * | Put to_test_case logic on TestRecord | Jonathan Lange | 2015-11-09 | 1 | -8/+25 |
| | | |||||
| * | Make _status_map persistent. | Jonathan Lange | 2015-11-09 | 1 | -2/+2 |
| | | | | | No need to ever change it. | ||||
| * | Move test_dict_to_case closer to test_dict definition | Jonathan Lange | 2015-11-09 | 1 | -27/+27 |
| | | |||||
| * | Remove temporary variable 'case' | Jonathan Lange | 2015-11-09 | 1 | -8/+7 |
| | | |||||
| * | Extract got_file | Jonathan Lange | 2015-11-09 | 1 | -8/+19 |
| | | |||||
| * | Extract got_timestamp function | Jonathan Lange | 2015-11-09 | 1 | -6/+10 |
| | | |||||
| * | Move creation logic to TestRecord itself | Jonathan Lange | 2015-11-09 | 1 | -10/+11 |
| | | |||||
| * | Actually use TestRecord internally | Jonathan Lange | 2015-11-09 | 1 | -25/+59 |
| | | |||||
| * | Extract methods for making and updating record | Jonathan Lange | 2015-11-09 | 1 | -13/+25 |
| | | |||||
| * | Extract _make_content_type | Jonathan Lange | 2015-11-09 | 1 | -14/+22 |
| | | |||||
| * | Use `case` consistently, over `_inprogress[key]` | Jonathan Lange | 2015-11-09 | 1 | -5/+13 |
| | | |||||
| * | Use name for interim states | Jonathan Lange | 2015-11-09 | 1 | -1/+1 |
| | | |||||
| * | Aspirational documentation | Jonathan Lange | 2015-11-09 | 1 | -0/+66 |
| | | |||||
| * | Update PlaceHolder indentation | Jonathan Lange | 2015-11-06 | 1 | -3/+3 |
| | | |||||
| * | Restore & deprecate domap | Jonathan Lange | 2015-11-06 | 1 | -6/+19 |
| | | | | | | | * Private name for `_strict_map` * Use `map` signature to `_strict_map` * Add alias `domap` with deprecation warning | ||||
| * | Spell out `f` and `xs` | Jonathan Lange | 2015-11-03 | 1 | -2/+2 |
| | | |||||
| * | Drop `__metaclass__` declaration | Jonathan Lange | 2015-11-02 | 1 | -1/+0 |
| | | |||||
| * | Document confusing `domap` | Jonathan Lange | 2015-11-02 | 1 | -6/+7 |
| | | |||||
| * | Remove duplicate implementation of method | Jonathan Lange | 2015-11-02 | 1 | -3/+0 |
| | | |||||
| * | Allow event_log to be passed to result doubles | Jonathan Lange | 2015-11-02 | 1 | -8/+12 |
| | | |||||
| * | Fix lint in testresult.real | Jonathan Lange | 2015-11-02 | 1 | -56/+73 |
| | | |||||
| * | Lint clear-up | Jonathan Lange | 2015-11-02 | 1 | -6/+7 |
| | | |||||
| * | Fix pypy3 tests by using ceil when reporting duration. | Robert Collins | 2015-03-11 | 1 | -4/+10 |
| | | | | | | | | | During reporting in ``TextTestResult`` now always uses ``ceil`` rather than depending on the undefined rounding behaviour in string formatting. (Robert Collins) Change-Id: I72e11ccd1c41e9dbc65358aba5c1ffdc2d96eaf6 | ||||
