Skip to content

Commit 738392e

Browse files
maxnussbaumGERMAN ATTANASIO RUIZ
authored andcommitted
test(nlc): Add more tests for nlc
1 parent a22a061 commit 738392e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/unit/test_natural_language_classifier_v1.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,14 @@ def test_success
101101
training_data = File.open(Dir.getwd + "/resources/weather_data_train.csv")
102102
service_response = service.create_classifier(
103103
training_data: training_data,
104+
training_data_filename: "weather_data_train.csv",
105+
metadata: { "language" => "en" },
106+
metadata_filename: "metadata"
107+
)
108+
assert_equal(create_response, service_response.body)
109+
110+
service_response = service.create_classifier(
111+
training_data: { "training" => "data" },
104112
metadata: { "language" => "en" }
105113
)
106114
assert_equal(create_response, service_response.body)

0 commit comments

Comments
 (0)