mirror of
https://github.com/EricNeid/go-openweather.git
synced 2025-04-22 17:45:18 +00:00
Merge pull request #1 from EricNeid/refactor_project-layout
Separate unit and integration tests
This commit is contained in:
commit
43c8aed059
@ -1,3 +1,9 @@
|
||||
[](https://goreportcard.com/report/github.com/EricNeid/go-openweather)
|
||||

|
||||
[](http://godoc.org/github.com/EricNeid/go-openweather)
|
||||
[](https://github.com/EricNeid/go-openweather/releases/latest)
|
||||
[](https://gitpod.io/#https://github.com/EricNeid/go-openweather)
|
||||
|
||||
# About
|
||||
|
||||
This Repo contains golang library to query OpenWetherMaps (<http://openweathermap.org/>) for weather information.
|
||||
|
@ -1,3 +1,5 @@
|
||||
// +build integration
|
||||
|
||||
package openweather
|
||||
|
||||
import (
|
@ -9,7 +9,7 @@ import (
|
||||
func TestNewQueryForCity(t *testing.T) {
|
||||
// arrange
|
||||
apiKey := "testKey"
|
||||
location := cityBerlin
|
||||
location := "Berlin,de"
|
||||
// action
|
||||
q := NewQueryForCity(apiKey, location)
|
||||
// verify
|
||||
|
Loading…
x
Reference in New Issue
Block a user