mirror of
https://github.com/google/nomulus.git
synced 2025-05-20 11:19:35 +02:00
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:
parent
1c630cf0a9
commit
c1745e4b01
2 changed files with 16 additions and 7 deletions
|
@ -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()
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue