Jaymon / testdata

Python module to make testing easier, it can generate random data like names and text, run commands, fetch urls, create files and directories, and more
MIT License
10 stars 0 forks source link

switch name with contents for all the create_* functions #49

Closed Jaymon closed 1 year ago

Jaymon commented 5 years ago

turns out I often don't care what the name of the file is for most things, so having name be first for everything is annoying, I've modified this current major version (the 0.0 branch) to create a random name if it is empty, and I've started using them like this:

testdata.create_module(contents="...")

But I think I should break backwards compatibility for the next major version and make all the function definitions be:

contents="", tmpdir="", name=""
Jaymon commented 1 year ago

This was fixed at some point in the last 4 years