Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
NickNeck committed Jan 19, 2025
1 parent 2415ec4 commit 394ffe3
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions test/support/test_project.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
defmodule TestProject do
@moduledoc """
A module to fake projects in tests.
"""

@doc """
Creates a new project.
"""
def new do
nr = :erlang.unique_integer([:positive])

{{:module, module, _bin, _meta}, _binding} =
Code.eval_string("""
defmodule FormatWithDepsApp#{nr} do
def project do
[
app: :test_project_#{nr},
version: "0.1.0"
]
end
end
""")

module
end
end

0 comments on commit 394ffe3

Please sign in to comment.