Commit Graph

13 Commits

Author SHA1 Message Date
Andrew Morgan e1b42da345 lint 2026-01-23 17:05:56 +00:00
Andrew Morgan 85ef24f917 Remove test runtime checks for AsyncMock vs. Mock
Turns out they're always AsyncMock.
2026-01-23 16:52:21 +00:00
Andrew Morgan e0304c627b created_at -> created_at_sec 2026-01-23 14:41:06 +00:00
Andrew Morgan 2e71abdfda Add user_id field to guest_module_mas_users
Currently unused, but may be useful in future.
2026-01-23 14:38:19 +00:00
Andrew Morgan 2a9c384213 Update tests for randomly generated device IDs
Pin the device ID in tests by mocking the generation function.
And test said generation function.
2026-01-19 14:34:03 +00:00
Andrew Morgan b8fda8acdf lint 2026-01-19 13:04:31 +00:00
Andrew Morgan 41922415ba Update tests to run with MAS module variant
We now run the standard battery of tests with a MAS-enabled module. Some
minimal adjustment was needed to check MAS-specific outputs.
2026-01-16 19:21:38 +00:00
Andrew Morgan 55ca2be0f6 Update unit tests to check MAS config, deactivation works 2026-01-16 19:20:35 +00:00
Andrew Ferrazzutti 523758cbea synapse guest module: move license files
Move them into the module folder so that they'll be properly included
in distribution builds, such as when installing this module via pip.

Also reword copyright headers to refer to the project root instead of
the repository root, which isn't included in distribution builds.
2025-02-12 15:42:18 -05:00
Andrew Ferrazzutti 3e107737aa Remove "(C)" from copyright lines
for consistency with other copyright lines, and readability
2025-02-11 14:00:07 -05:00
Andrew Ferrazzutti 226b89f846 synapse guest module: change license
Set license to multi-license of AGPL + Element Commercial, and add
associated license files to the repository root.

This does not add a notice of "This file includes modifications" to any
files because they were only moved and relicensed, but otherwise
unmodified.

The exception is run_in_venv.sh, which is a rewrite of upstream's
run_in_venv.js and thus lacks the original copyright entirely.
2025-02-10 15:39:48 -05:00
Andrew Ferrazzutti ffb5fdaa30 synapse guest module: update copyright 2025-02-05 08:18:25 -05:00
Andrew Ferrazzutti 386073c0e8 Merge commit '01af446be7cbd63b38f2fe35c2c9a25fac4fdef8' as 'modules/restricted-guests/synapse' 2025-02-04 09:21:06 -05:00