Skip to content

Commit

Permalink
Revert "Usinng ModelSuite for the generated model tests"
Browse files Browse the repository at this point in the history
This reverts commit 6602fc7.
  • Loading branch information
paganotoni committed Nov 29, 2019
1 parent 6602fc7 commit 91c1962
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions genny/model/_fixtures/models/widget_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ package models

import "testing"

func (ms *ModelSuite) Test_Widget() {
ms.Fail("This test needs to be implemented!")
func Test_Widget(t *testing.T) {
t.Fatal("This test needs to be implemented!")
}
4 changes: 2 additions & 2 deletions genny/model/templates/-path-/-name-_test.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ package {{.opts.TestPackage}}

import "testing"

func (ms *ModelSuite) Test_{{.model.Name.Proper}}() {
ms.Fail("This test needs to be implemented!")
func Test_{{.model.Name.Proper}}(t *testing.T) {
t.Fatal("This test needs to be implemented!")
}

0 comments on commit 91c1962

Please sign in to comment.