diff options
author | Hubert Chathi <hubert@uhoreg.ca> | 2020-12-26 21:32:44 -0500 |
---|---|---|
committer | Hubert Chathi <hubert@uhoreg.ca> | 2020-12-26 21:32:44 -0500 |
commit | d11baa1ab6628781506ad17936dfcd5a9afd0821 (patch) | |
tree | 9c659069e71f84fd4ac9b9761115eb6e0190f3b7 /test/support | |
parent | fix warnings in test (diff) |
add function for getting user/device ID
and use it when the user ID is unspecified when setting/getting account data
Diffstat (limited to 'test/support')
-rw-r--r-- | test/support/dummy_client.ex | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/support/dummy_client.ex b/test/support/dummy_client.ex index bc0d202..4335282 100644 --- a/test/support/dummy_client.ex +++ b/test/support/dummy_client.ex @@ -33,6 +33,10 @@ defmodule DummyClient do def transaction_id(_), do: "txn_id" + def get_user_and_device(_) do + {"@alice:example.org", "DEVICEID"} + end + def stop(_, _, _) do # don't need to do anything to stop it :ok @@ -76,6 +80,10 @@ defmodule DummyClient do def transaction_id(_), do: "txn_id" + def get_user_and_device(_) do + {"@alice:example.org", "DEVICEID"} + end + def stop(%{pid: pid}, _, _) do # make sure we weren't expecting any more requests remaining = Agent.get(pid, & &1) |