Commit Graph

6 Commits

Author SHA1 Message Date
Dylan Anthony
ddd27840ad
test: Fix out of date federation tests 2022-09-23 11:39:42 -06:00
aidan coyne
6575fd6741 Revert "default to printing the applicaiton of the link directive"
This reverts commit 64e6e7e7fa.
2022-09-22 09:48:10 -05:00
aidan coyne
64e6e7e7fa default to printing the applicaiton of the link directive
change to providing a method to opt-out of printing it.
2022-09-20 08:12:54 -05:00
aidan coyne
c4530dd1bb add a test for the printing of link directive 2022-09-19 16:14:21 -05:00
Dominik Spicher
1e9d9820a8 export_sdl: add missing space before opening braces 2022-08-29 22:25:17 +02:00
Dominik Spicher
50d40b361e tests/federation: compare export_sdl against expected schema
This commit adds logic to two unit tests where the schema
export is compared against expected output cached in two
schema files.

This is intended to help prevent bugs like the ones fixed in
116f6e4 or the immediately succeeding commit, as unexpected
changes to schema export will become apparent in the commit
diff, easing reviews.

When legitimately changing the export output behaviour,
the test suite just needs to be run twice, as the unit-tests
automatically overwrite the files with the new version.

This unit-test approach is inspired by

https://matklad.github.io/2022/03/26/self-modifying-code.html
2022-08-29 22:23:28 +02:00