Skip to content

Commit 79e80bd

Browse files
committed
rm missing load_path warning; better: dev tests for interface implementation
1 parent 58fe805 commit 79e80bd

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

src/metadata_utils.jl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,6 @@ function _extend!(program::Expr, trait::Symbol, value, T)
6565
end
6666
end
6767

68-
const WARN_MISSING_LOAD_PATH = "No `load_path` defined. "
69-
70-
7168
"""
7269
metadata_model(`T`; args...)
7370
@@ -114,8 +111,6 @@ function metadata_model(
114111
human_name::Union{Nothing,String}=nothing
115112
)
116113

117-
load_path === nothing && @warn WARN_MISSING_LOAD_PATH
118-
119114
program = quote end
120115

121116
# Note: Naively using metaprogramming to roll up the following

test/metadata_utils.jl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ setfull()
2121
M.implemented_methods(::FI, M::Type{<:MLJType}) =
2222
getfield.(methodswith(M), :name)
2323

24-
@test_logs(
25-
(:warn, MLJModelInterface.WARN_MISSING_LOAD_PATH),
26-
metadata_model(BarGoo)
27-
)
28-
2924
metadata_model(FooRegressor,
3025
input_scitype=Table(Continuous),
3126
target_scitype=AbstractVector{Continuous},

0 commit comments

Comments
 (0)