fix tests

This commit is contained in:
2022-04-19 20:08:10 -04:00
parent 9e754fe630
commit 7f9e6f9eff
2 changed files with 51 additions and 56 deletions

View File

@ -5,8 +5,8 @@ defmodule Cannery.Ammo do
import Ecto.Query, warn: false
alias Cannery.{Accounts.User, Containers, Repo}
alias Cannery.Ammo.{AmmoGroup, AmmoType}
alias Cannery.ActivityLog.ShotGroup
alias Cannery.Ammo.{AmmoGroup, AmmoType}
alias Ecto.Changeset
@ammo_group_create_limit 10_000
@ -45,8 +45,6 @@ defmodule Cannery.Ammo do
@doc """
Gets the average cost of a single ammo type
Raises `Ecto.NoResultsError` if the Ammo type does not exist.
## Examples
iex> get_average_cost_for_ammo_type!(%AmmoType{id: 123}, %User{id: 123})