Skip to content

Example code fails in python 3.6 #10

Description

@exit99
class Accounts(testdata.DictFactory):
id = testdata.CountingFactory(10)
first = testdata.FakeDataFactory('firstName')
last = testdata.FakeDataFactory('lastName')
address = testdata.FakeDataFactory('address')
age = testdata.RandomInteger(10, 30)
Accounts().generate(10)

raises this exception:

tdata/dictionary.py", line 27, in __init__
self._child_factories = deepcopy(self._child_factory_tree)
AttributeError: 'Accounts' object has no attribute '_child_factory_tree'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions