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

model faker library #261

Merged
merged 24 commits into from
Jan 21, 2025
Merged

model faker library #261

merged 24 commits into from
Jan 21, 2025

Conversation

devkral
Copy link
Contributor

@devkral devkral commented Jan 13, 2025

Changes:

  • add model faker library.
  • move testclient to testing but keep a forward reference.
  • Some bugfixes concerning typings and files
  • fix mypy issues
  • add missing example for FileField

edgy/testing/client.py Outdated Show resolved Hide resolved
tarsil and others added 12 commits January 20, 2025 03:09
- finish test lib
- rename namespace to testing but keep testclient as forward
Changes:

- add FactoryField
- fix inheritance
- fix typings
- add field handlers for foreign keys
- replace duplicate method in ref_foreign_key
- fix wrong default for ManyToMany
- add tests
- improve tests
- extract values from fields
- allow callable parameters
- fix tests
- fix typings
- add more tests
- improve field mappings
- docs
- make model validation customizable
- opt-outs via exception
- more useful edgy_field extractors
- special parameters randomly_nullify, randonly_unset
- faker method shortcut
-parametetrize
- fix regression in File
- more tests
- more examples for testing Modelfactory
- fix documentation
- provide documentation for file field
@devkral devkral changed the title WIP: model faker library model faker library Jan 20, 2025
@devkral devkral requested a review from tarsil January 21, 2025 07:42
docs/testing/model-factory.md Outdated Show resolved Hide resolved
docs/testing/model-factory.md Show resolved Hide resolved
docs/testing/model-factory.md Show resolved Hide resolved
docs/testing/model-factory.md Outdated Show resolved Hide resolved
docs/testing/model-factory.md Outdated Show resolved Hide resolved
docs/testing/model-factory.md Outdated Show resolved Hide resolved
docs/testing/model-factory.md Show resolved Hide resolved
docs/testing/model-factory.md Outdated Show resolved Hide resolved
docs/testing/model-factory.md Outdated Show resolved Hide resolved
docs/testing/model-factory.md Outdated Show resolved Hide resolved
- fixes docs
- fixes small chance that tests fail. Randomness.
@devkral devkral requested a review from tarsil January 21, 2025 09:04
@devkral devkral merged commit 6444489 into main Jan 21, 2025
10 checks passed
@devkral devkral deleted the feat/testing_lib branch January 21, 2025 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants