Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] - Add better mocking to tests #39

Open
ilyichv opened this issue Jun 29, 2023 · 0 comments
Open

[Bug] - Add better mocking to tests #39

ilyichv opened this issue Jun 29, 2023 · 0 comments

Comments

@ilyichv
Copy link
Member

ilyichv commented Jun 29, 2023

Describe the bug
We want to have better mocking in order to have stronger tests.
What we can do is add a support file which contains a map that simulates existing units, after that we should update persistence_fn.ex following functions

def execute(query, :all), do: {:execute, :all}
  def execute(query, :one), do: nil
  def execute(query, :raw), do: {:execute, :raw}
  def execute(query, :count), do: {:execute, :count}
  def execute(query, :pseudo_query), do: {:execute, :pseudo_query}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant