Skip to content

RepositorySimulator: add trackers/counters for downloaded files #1682

Closed
@sechkova

Description

@sechkova

Description of issue or feature request:
There is a need in some test cases to check whether Updater requested the correct files from the repository.
For a concrete use case see #1666.

One option used in #1666 is to use unittest.mock and "wrap" RepositorySimulator._fetch_* methods which does the job but does make the tests less readable.
Therefore as an alternative, proposed by @jku #1666 (review), checking that the expected files are downloaded from remote can be done by adding some download counters into RepositorySimulator which would be cleaner and more maintainable

Metadata

Metadata

Assignees

Labels

backlogIssues to address with priority for current development goalstesting

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions