Merge pull request #1 from EricNeid/refactor_project-layout

Separate unit and integration tests
This commit is contained in:
Eric Neidhardt 2020-07-17 09:19:22 +02:00 committed by GitHub
commit 43c8aed059
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,9 @@
[![Go Report Card](https://goreportcard.com/badge/github.com/EricNeid/go-openweather?style=flat-square)](https://goreportcard.com/report/github.com/EricNeid/go-openweather)
![Go](https://github.com/EricNeid/go-openweather/workflows/Go/badge.svg)
[![Go Doc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](http://godoc.org/github.com/EricNeid/go-openweather)
[![Release](https://img.shields.io/github/release/EricNeid/go-openweather.svg?style=flat-square)](https://github.com/EricNeid/go-openweather/releases/latest)
[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/EricNeid/go-openweather)
# About
This Repo contains golang library to query OpenWetherMaps (<http://openweathermap.org/>) for weather information.

View File

@ -1,3 +1,5 @@
// +build integration
package openweather
import (

View File

@ -9,7 +9,7 @@ import (
func TestNewQueryForCity(t *testing.T) {
// arrange
apiKey := "testKey"
location := cityBerlin
location := "Berlin,de"
// action
q := NewQueryForCity(apiKey, location)
// verify