In Elixir/Phoenix/Ecto, how can I create a fixture with modified timestamp values for testing?

68 Views Asked by At

I want to be able to create a test data with custom inserted_at value for testing. Is this possible? Ideally it should be flexible so I can adjust the date to the test I want to write.

I've search the internet, ask the LLMs but no luck.

0

There are 0 best solutions below