Skip to content

Commit

Permalink
Added test file
Browse files Browse the repository at this point in the history
  • Loading branch information
pahatz committed Apr 29, 2024
1 parent bd17147 commit f9fb069
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions htsget/htsget_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package htsget

import (
"os"
"testing"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
)

type TestSuite struct {
suite.Suite
tempDir string
fileContent []byte
testFile *os.File
}

func TestConfigTestSuite(t *testing.T) {
suite.Run(t, new(TestSuite))
}

func (suite *TestSuite) TestNoArgument() {

os.Args = []string{"htsget"}

err := Htsget(os.Args)
assert.EqualError(suite.T(), err, "missing required arguments, datasetID, filename, htsgethost and key are required")
}

0 comments on commit f9fb069

Please sign in to comment.