- π Iβm interested in everything music, software, and technology.
- π± Iβm currently learning Rust
- ποΈ Iβm looking to collaborate on any of my open source projects here on Github. To name a few:
Python library designed to minimize the setup/arrange phase of your unit tests
License: MIT License
https://github.com/databrickslabs/dbldatagen
there is this library from data bricks labs with a very similar functionality and focus. Maybe you should align yours to try to make use of data Bricksβs library, or mention how your focus is different maybe you have a different compatibility requirements.
Love the idea of this! Our use case makes heavy use of enums. Are there plans for enum support in the future?
This is a very helpful project. Cannot imagine there is no AutoFixture correspondence in python.
It would be more useful if there is pytest support:
from autofaker import autodata
@autodata()
def test_2(tstr: str):
pass
Output: NotImplementedError: This way of creating anonymous objects are only supported from unit test
Hello,
I make use of typing: Literals in my code, where an enum would be overkill. Would you consider incorporating this as a feature?
def test_():
from dataclasses import dataclass
from autofaker import Autodata
from typing import Literal
MyLiteral = Literal['a', 'b']
@dataclass
class DTO:
id: int
thing: MyLiteral
data = Autodata.create(DTO, use_fake_data=True)
print(f'id: {data.id}')
print(f'thing: {data.thing}')
Many thanks!
The current code to generate an enum is the following:
def is_enum(t) -> bool:
return t.__base__.__name__ == 'Enum'
This allows only direct classes of Enum to be generated. If you have something like
class BasicEnum(Enum):
some stuff
class MyEnum(BasicEnum):
VALUE_1 = 1
VALUE_2 = 2
it wont work.
This can be fixed by just asking if it is instance of Enum instead
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
This repository currently has no open or pending branches.
.github/workflows/build-for-os.yml
actions/checkout v4
actions/setup-python v5
.github/workflows/build.yml
actions/checkout v4
actions/setup-python v5
.github/workflows/codecov.yml
actions/checkout v4
actions/setup-python v5
codecov/codecov-action v4.5.0
.github/workflows/integration-tests.yml
.github/workflows/pre-release.yml
actions/setup-python v5
.github/workflows/release.yml
actions/setup-python v5
actions/github-script v7
.github/workflows/sonar-cloud.yml
actions/checkout v4
actions/setup-java v4
actions/setup-python v5
actions/upload-artifact v4
.github/workflows/test.yml
actions/checkout v4
actions/setup-python v5
pyproject.toml
setuptools >=46.4.0
requirements.txt
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.