Skip to content

Commit

Permalink
Adjusted tests to new method names
Browse files Browse the repository at this point in the history
  • Loading branch information
anquetil committed Jan 8, 2024
1 parent 7976a06 commit 818931c
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions src/MoosePy/MSEPythonImporterTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,9 @@ MSEPythonImporterTest >> testImportFamixFunctionWithParameter [
| param func |
importer accept: pyDoc2.

param := importer parameterNamed: 'word' inFunction: 'tryToPlaceWord'.
param := importer
parameterNamed: 'word'
inBehavioural: (importer functionNamed: 'tryToPlaceWord').
func := param parentBehaviouralEntity.

self assert: func class equals: FamixPythonFunction.
Expand Down Expand Up @@ -275,9 +277,8 @@ MSEPythonImporterTest >> testImportFamixMethodWithParameter [
importer accept: pyDoc.

param := importer
parameterNamed: 'y'
inMethod: '__init__'
inClass: 'Player'.
parameterNamed: 'y'
inBehavioural: (importer methodNamed: '__init__' inClassNamed: 'Player').

mth := param parentBehaviouralEntity.

Expand All @@ -293,12 +294,17 @@ MSEPythonImporterTest >> testImportFamixParameter [

| param |
importer accept: pyDoc.
param := importer parameterNamed: 'joystick_no' inMethod: '__init__' inClass: 'Player'.
param := importer
parameterNamed: 'joystick_no'
inBehavioural: (importer methodNamed: '__init__' inClassNamed: 'Player').

self assert: param class equals: FamixPythonParameter.
self assert: param name equals: 'joystick_no'.

importer accept: pyDoc2.
param := importer parameterNamed: 'word' inFunction: 'tryToPlaceWord'.
param := importer
parameterNamed: 'word'
inBehavioural: (importer functionNamed: 'tryToPlaceWord').
self assert: param class equals: FamixPythonParameter.
self assert: param name equals: 'word'.
]
Expand Down

0 comments on commit 818931c

Please sign in to comment.