Skip to content
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

Create test FakePkgs to use in different tests #1104

Open
danigm opened this issue Aug 23, 2023 · 0 comments
Open

Create test FakePkgs to use in different tests #1104

danigm opened this issue Aug 23, 2023 · 0 comments

Comments

@danigm
Copy link
Member

danigm commented Aug 23, 2023

Create common fake packages to reuse in different tests, for example test/mocks/packages.py and there we can have the fake packages defined like config_files, bad_crc_uncompressed, python3_icecream_leftovers, etc.

So in tests we just need to import. We can do this just for packages that are useful in more than one test and for "large" fake package definitions.

In the first version we can have simple packages with standard files, for example, we can mock some complex package with a lot of files, and also we can have there some "random" generated packages using modules like faker, we can add random metadata and some files with random content, config, doc and regular files.

danigm added a commit that referenced this issue Feb 1, 2024
danigm added a commit that referenced this issue Feb 1, 2024
This patch add the ability to lazy load the mock packages annd also a
way to copy mock packages to just modify some of the package data.

See #1104
danigm added a commit that referenced this issue Feb 1, 2024
danigm added a commit that referenced this issue Feb 1, 2024
This patch add the ability to lazy load the mock packages annd also a
way to copy mock packages to just modify some of the package data.

See #1104
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant