Skip to content

Commit 4297355

Browse files
authored
Merge pull request #206 from cloudblue/fix_tests_for_tfn_template
Fix tests for transformations app
2 parents 70e7833 + 69d63e0 commit 4297355

File tree

1 file changed

+6
-2
lines changed
  • connect/cli/plugins/project/extension/templates/bootstrap/${project_slug}/tests

1 file changed

+6
-2
lines changed

connect/cli/plugins/project/extension/templates/bootstrap/${project_slug}/tests/test_tfnapp.py.j2

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# Copyright (c) 2022, Globex Corporation
44
# All rights reserved.
55
#
6+
from connect.eaas.core.enums import ResultType
7+
68
from {{ package_name }}.tfnapp import {{ project_slug|replace("_", " ")|title|replace(" ", "") }}TransformationsApplication
79

810

@@ -24,12 +26,14 @@ def test_copy_columns(connect_client, logger, mocker):
2426
},
2527
)
2628

27-
assert app.copy_columns(
29+
response = app.copy_columns(
2830
{
2931
'ColumnA': 'ContentColumnA',
3032
'ColumnB': 'ContentColumnB',
3133
},
32-
) == {
34+
)
35+
assert response.status == ResultType.SUCCESS
36+
assert response.transformed_row == {
3337
'NewColC': 'ContentColumnA',
3438
'NewColD': 'ContentColumnB',
3539
}

0 commit comments

Comments
 (0)