View Source Loupe.Test.Ecto (Loupe v0.9.0)

Mock schemas and Ecto modules for tests.

For reasons I don't fully understand, seperating this module into seperate files causes compilation issues. Some module aren't loaded properly at the right time and cause problems. Same for some relations, those you see that uses Module.concat/1, they need to use this call because at the time of reading this file, they aren't properly compiled.

Link to this section Summary

Link to this section Functions

Link to this function

create_context(test_context)

View Source
Link to this function

run_query(query, options \\ [])

View Source
Link to this function

update_assigns(context, assigns)

View Source
Link to this function

with_root_schema(test_context)

View Source