refactoring
This commit is contained in:
parent
aef3aa299f
commit
960506d16a
6 changed files with 57 additions and 31 deletions
|
|
@ -1,14 +0,0 @@
|
|||
defmodule Mv.ConfigTest do
|
||||
@moduledoc """
|
||||
Tests for Mv.Config module.
|
||||
"""
|
||||
use ExUnit.Case, async: false
|
||||
|
||||
alias Mv.Config
|
||||
|
||||
# Note: CSV import configuration functions were never implemented.
|
||||
# The codebase uses hardcoded constants instead:
|
||||
# - @max_file_size_bytes 10_485_760 in GlobalSettingsLive
|
||||
# - @default_max_rows 1000 in MemberCSV
|
||||
# These tests have been removed as they tested non-existent functions.
|
||||
end
|
||||
|
|
@ -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