Generate ER diagrams in :nom:generate_golden_file (#867)

Generate entity relationship diagrams during the same step in which we
generate the golden schema.
This commit is contained in:
Michael Muller 2020-11-10 10:03:28 -05:00 committed by GitHub
parent 1c630cf0a9
commit c1745e4b01
2 changed files with 16 additions and 7 deletions

View file

@ -113,7 +113,10 @@ class MyTest(unittest.TestCase):
nom_build.main(['nom_build', ':nom:generate_golden_file'])
self.call_mock.assert_has_calls([
mock.call([GRADLEW, ':db:test']),
mock.call([GRADLEW, ':db:test'])
mock.call([GRADLEW, ':db:test', 'devTool',
'--args=-e localhost --log_level=WARNING '
'generate_sql_er_diagram -o '
'/tmp/rootdir/db/src/main/resources/sql/er_diagram'])
])
def test_generate_golden_file_nofail(self):
@ -122,5 +125,3 @@ class MyTest(unittest.TestCase):
self.call_mock.assert_has_calls([mock.call([GRADLEW, ':db:test'])])
unittest.main()