We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I like test fixtures but encountered a minor (documentation) problem:
When I use this:
... testfixtures.Database(db.DB()), testfixtures.Dialect("sqlite"), testfixtures.Directory("testdata/fixtures"), testfixtures.Template(), testfixtures.TemplateFuncs(template.FuncMap{ "now": now, }),
I get an error:
testfixtures: could not unmarshal YAML: yaml: invalid map key: map[interface {}]interface {}{"now":interface {}(nil)}
When I move the line with Directory() down a bit, everything works fine:
Directory()
testfixtures.Database(db.DB()), testfixtures.Dialect("sqlite"), testfixtures.Template(), testfixtures.TemplateFuncs(template.FuncMap{ "now": now, }), testfixtures.Directory("testdata/fixtures"),
I could not see this in the documentation. It might be worth mentioning?
The text was updated successfully, but these errors were encountered:
Hi @pgundlach,
Yes, Directory, Files and Paths should always be the last option in the call.
Directory
Files
Paths
Sorry, something went wrong.
No branches or pull requests
I like test fixtures but encountered a minor (documentation) problem:
When I use this:
I get an error:
When I move the line with
Directory()
down a bit, everything works fine:I could not see this in the documentation. It might be worth mentioning?
The text was updated successfully, but these errors were encountered: