Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Improve the synapse.api.auth.Auth mock used in unit tests. #13809

Merged

Commits on Sep 14, 2022

  1. Improve the synapse.api.auth.Auth mock used in unit tests.

    Signed-off-by: Quentin Gliech <quenting@element.io>
    sandhose committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    f540411 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2022

  1. Patch Auth using unittest.mock.patch instead

    Signed-off-by: Quentin Gliech <quenting@element.io>
    sandhose committed Sep 16, 2022
    Configuration menu
    Copy the full SHA
    53a1b6c View commit details
    Browse the repository at this point in the history
  2. Attempt to fix the mock on older Python versions

    Signed-off-by: Quentin Gliech <quenting@element.io>
    sandhose committed Sep 16, 2022
    Configuration menu
    Copy the full SHA
    0c39832 View commit details
    Browse the repository at this point in the history
  3. Second attempt at fixing the mock on older Python versions

    Signed-off-by: Quentin Gliech <quenting@element.io>
    sandhose committed Sep 16, 2022
    Configuration menu
    Copy the full SHA
    e4c1522 View commit details
    Browse the repository at this point in the history
  4. Use make_awaitable instead of creating the Future manually

    Signed-off-by: Quentin Gliech <quenting@element.io>
    sandhose committed Sep 16, 2022
    Configuration menu
    Copy the full SHA
    a626bdb View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2022

  1. Fix tests where the authed user ID gets overridden

    Signed-off-by: Quentin Gliech <quenting@element.io>
    sandhose committed Sep 19, 2022
    Configuration menu
    Copy the full SHA
    d69e4e5 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2022

  1. Configuration menu
    Copy the full SHA
    c20ecd2 View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2022

  1. Try to fix tests on old python

    Signed-off-by: Quentin Gliech <quenting@element.io>
    sandhose committed Sep 21, 2022
    Configuration menu
    Copy the full SHA
    3f1cd16 View commit details
    Browse the repository at this point in the history
  2. Use patch.object instead of assignments

    Signed-off-by: Quentin Gliech <quenting@element.io>
    sandhose committed Sep 21, 2022
    Configuration menu
    Copy the full SHA
    4219250 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    caab31f View commit details
    Browse the repository at this point in the history