Open aholmes opened 1 week ago
This is likely caused by how the Test module template determines whether the Database module was selected. The template executes {% if module.database %}
, which only passes if the Database module has already executed. This is because the Database module is responsible for setting module.database
in the template Jinja2 Environment, which occurs here.
A solution may be to have the Test module template check a different variable to determine whether the Database module was selected (maybe modules
?).
ligare-scaffold
contains a module for both "test" and "database." The test module is supposed to create database tests when the database module is specified. When database is specified before test, it works as expected; however, the inverse does not work as expected and no database tests are created.Works:
Does not work: