refactoring
This commit is contained in:
parent
aef3aa299f
commit
960506d16a
6 changed files with 57 additions and 31 deletions
|
|
@ -10,7 +10,7 @@ defmodule MvWeb.GlobalSettingsLiveConfigTest do
|
|||
import Phoenix.LiveViewTest
|
||||
|
||||
# Helper function to upload CSV file in tests
|
||||
defp upload_csv_file(view, csv_content, filename \\ "test_import.csv") do
|
||||
defp upload_csv_file(view, csv_content, filename) do
|
||||
view
|
||||
|> file_input("#csv-upload-form", :csv_file, [
|
||||
%{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue