Skip to content

Commit

Permalink
Cleaning up configuration and tests
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Balogh <[email protected]>
  • Loading branch information
javaducky committed Jan 20, 2024
1 parent 6214865 commit 41cb9eb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 148 deletions.
2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
DatabaseURI: "/Users/paul/Develop/weesvc-gorilla/gorm.db"
DatabaseURI: "./gorm.db"
# Specify dialect as "postgres" or "sqlite3". "sqlite3" is default.
#Dialect: sqlite3
#Verbose: true
142 changes: 0 additions & 142 deletions db/place_suite_test.go

This file was deleted.

6 changes: 1 addition & 5 deletions db/place_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ import (
"github.com/stretchr/testify/assert"
)

// Here we're testing each CRUD method independently, but we're using a fresh container
// for each test. This _may_ be ok, but could be a bit of overhead for CICD pipelines.
//
// With this method, we've refactored some container work into the `testhelpers` package.

func TestDatabase_GetPlaces(t *testing.T) {
t.Parallel()
placeDb := setupDatabase(t)
Expand Down Expand Up @@ -113,6 +108,7 @@ func TestDatabase_DeletePlaceByID(t *testing.T) {
}
}

// setupDatabase creates an isolated `Database` instance backed by a Postgres Testcontainer.
func setupDatabase(t *testing.T) *Database {
ctx := context.Background()

Expand Down

0 comments on commit 41cb9eb

Please sign in to comment.