improve test coverage

This commit is contained in:
Simon Aronsson 2019-04-17 15:36:35 +02:00
parent 16b66ac10b
commit f8dd9bb02a
4 changed files with 148 additions and 18 deletions

View file

@ -3,10 +3,13 @@ package container
import (
"os"
"testing"
"github.com/stretchr/testify/assert"
)
func TestEncodedEnvAuth_ShouldReturnAnErrorIfRepoEnvsAreUnset(t *testing.T) {
os.Unsetenv("REPO_USER")
os.Unsetenv("REPO_PASS")