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

it would be nice if create_module could take a dict of submodules #54

Closed Jaymon closed 1 month ago

Jaymon commented 4 years ago

I'd like to do something like:

m = testdata.create_module({
    "foo": ""
    "foo.bar": "",
    "che": ""
})

And it would create the module with whatever name, with submodules: .foo, .foo.bar, and .che and m would be a ModulePath instance so print(m) would print whatever name of the module.

Jaymon commented 1 month ago

Added in beaaf4a84c38589cb2b688beea399d2cd9d04d6d