mirror of
https://github.com/EricNeid/go-openweather.git
synced 2025-01-10 15:05:07 +00:00
Separate unit and integration tests
This commit is contained in:
parent
3693783e3c
commit
04f54aca88
@ -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
|
# About
|
||||||
|
|
||||||
This Repo contains golang library to query OpenWetherMaps (<http://openweathermap.org/>) for weather information.
|
This Repo contains golang library to query OpenWetherMaps (<http://openweathermap.org/>) for weather information.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// +build integration
|
||||||
|
|
||||||
package openweather
|
package openweather
|
||||||
|
|
||||||
import (
|
import (
|
@ -9,7 +9,7 @@ import (
|
|||||||
func TestNewQueryForCity(t *testing.T) {
|
func TestNewQueryForCity(t *testing.T) {
|
||||||
// arrange
|
// arrange
|
||||||
apiKey := "testKey"
|
apiKey := "testKey"
|
||||||
location := cityBerlin
|
location := "Berlin,de"
|
||||||
// action
|
// action
|
||||||
q := NewQueryForCity(apiKey, location)
|
q := NewQueryForCity(apiKey, location)
|
||||||
// verify
|
// verify
|
||||||
|
Loading…
Reference in New Issue
Block a user