Skip to content

Commit

Permalink
hello testImportCommits
Browse files Browse the repository at this point in the history
  • Loading branch information
badetitou committed Jun 14, 2024
1 parent e7587de commit 6ed65f6
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ GLHModelImporterTest class >> resources [
^ Array with: GLHModelImporterTestResource
]

{ #category : #running }
GLHModelImporterTest >> glhImporter [

^ self class resources first current glhImporter
]

{ #category : #running }
GLHModelImporterTest >> model [

Expand All @@ -34,6 +40,19 @@ GLHModelImporterTest >> testImportBranch [
self assert: testCodeChurnRepository branches isNotEmpty
]

{ #category : #tests }
GLHModelImporterTest >> testImportCommits [

| projectTestCodeChurn |
projectTestCodeChurn := (self model allWithType: GLHProject) detect: [
:project | project id = 57841283 ].
self glhImporter importCommits: projectTestCodeChurn.

self
assert: projectTestCodeChurn repository commits last author_name
equals: 'Nicolas Hlad'
]

{ #category : #tests }
GLHModelImporterTest >> testImportGroup [

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ Class {
#category : #'GitLabHealth-Model-Importer-Tests'
}

{ #category : #setup }
GLHModelImporterTestResource >> glhImporter [

^ glhImporter
]

{ #category : #setup }
GLHModelImporterTestResource >> importModel [

Expand Down

0 comments on commit 6ed65f6

Please sign in to comment.