From 2cd511cfeebee94e0c044bb95b52ff5f26d782f9 Mon Sep 17 00:00:00 2001 From: CyrilFerlicot Date: Mon, 2 Sep 2024 15:16:58 +0200 Subject: [PATCH] Fix weird merge --- .../FamixPythonImporterTest.class.st | 76 ------------------- 1 file changed, 76 deletions(-) diff --git a/src/Famix-Python-Importer-Tests/FamixPythonImporterTest.class.st b/src/Famix-Python-Importer-Tests/FamixPythonImporterTest.class.st index edfd433..ecad9b1 100644 --- a/src/Famix-Python-Importer-Tests/FamixPythonImporterTest.class.st +++ b/src/Famix-Python-Importer-Tests/FamixPythonImporterTest.class.st @@ -124,21 +124,6 @@ FamixPythonImporterTest >> testAttribute [ class attributes do: [ :attributes | self assert: (#( width height my_joystick ) anySatisfy: [ :name | name = attributes name ]) ] ] -{ #category : 'tests - classes' } -FamixPythonImporterTest >> testClass [ - - | ballClass wallClass | - importer accept: pyDoc. - ballClass := importer classNamed: 'Ball'. - self assert: ballClass class equals: FamixPythonClass. - self assert: ballClass name equals: 'Ball'. - self deny: ballClass isStub. - - wallClass := importer classNamed: 'Wall'. - self assert: wallClass name equals: 'Wall'. - self deny: wallClass isStub. -] - { #category : 'tests - attributes' } FamixPythonImporterTest >> testClassAttributes [ @@ -167,28 +152,6 @@ class B: self assert: classB attributes first name equals: 'a' ] -{ #category : 'tests - classes' } -FamixPythonImporterTest >> testClassKnowsItsMethods [ - - | cl | - importer accept: pyDoc. - cl := importer classNamed: 'Player'. - self assert: cl methods first name equals: '__init__'. - self assert: cl methods first signature equals: 'self, x, y, joystick_no'. - -] - -{ #category : 'tests - classes' } -FamixPythonImporterTest >> testClassSuperclass [ - - | class | - importer accept: pyDoc. - class := importer classNamed: 'Player'. - self assert: class class equals: FamixPythonClass. - self assert: class superclass isNotNil. - self assert: class superclass name equals: 'Sprite' -] - { #category : 'tests - decorators' } FamixPythonImporterTest >> testDecoratorsFunctionSingleDecorator [ "https://realpython.com/primer-on-python-decorators/" @@ -254,28 +217,6 @@ FamixPythonImporterTest >> testFileIsOk [ ] -{ #category : 'tests - functions' } -FamixPythonImporterTest >> testFunction [ - - | func | - importer accept: pyDoc2. - func := importer functionNamed: 'tryToPlaceWord'. - self assert: func class equals: FamixPythonFunction. - self assert: func signature equals: 'grid,word' - -] - -{ #category : 'tests - functions' } -FamixPythonImporterTest >> testFunctionKnowsItsModule [ - - | func module | - importer accept: pyDoc2. - func := importer functionNamed: 'tryToPlaceWord'. - module := importer moduleNamed: 'sprite_collect_blocks_2'. - self assert: func functionOwner equals: module. - self assert: func functionOwner class equals: FamixPythonModule -] - { #category : 'tests - lambdas' } FamixPythonImporterTest >> testFunctionNoLambda [ @@ -315,23 +256,6 @@ def identity(): ] -{ #category : 'tests - functions' } -FamixPythonImporterTest >> testFunctionWithParameter [ - - | param func | - importer accept: pyDoc2. - - param := importer - parameterNamed: 'word' - inBehavioural: (importer functionNamed: 'tryToPlaceWord'). - func := param parentBehaviouralEntity. - - self assert: func class equals: FamixPythonFunction. - self assert: (func signature includesSubstring: 'word') equals: true. - - self assert: param isNotNil -] - { #category : 'tests - import' } FamixPythonImporterTest >> testImport [