theupdateframework / theupdateframework/python-tuf
ngtests: improve _assert* methods
Offen
@MVrachev arbeitet bereits daran.
Seit 23.2.2022.
backlog
testing
- Vorherrschende Sprache
- Python
- Sterne
- 1.7k
- Forks
- 304
- Ø Merge
- 1 T. 2 Std.
- Gemergte PRs (30 T.)
- 17
Beschreibung
Description of issue or feature request:
Currently #1636 proposes three types of asserts for checking the state of local metadata:
_assert_files_exist_assert_content_equals_assert_version_equals
These still have some issues (see https://github.com/theupdateframework/python-tuf/pull/1636#discussion_r74079588, https://github.com/theupdateframework/python-tuf/pull/1636#pullrequestreview-794981714)
- non-trivial to pick which assert to use in which test case
_assert_content_equalscalls the private methodRepositorysimulator._fetch_metadata()to get the metadata content in bytes.
A smarter approach is needed, be it integrated in Repositorysimulator or not.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Bewertung
Dieses Issue wurde noch nicht bewertet.