Skip to content

Commit

Permalink
Move API key into yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanbradynd05 committed Feb 10, 2015
1 parent 8df7d03 commit 5ab02a0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion coverage/coverage_report.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
</head>
<body>
<div id="doctitle">Coverage Report</div>
<div id="about">Generated on 09 Feb 15 20:17 -0500 with <a href="https://github.com/matm/gocov-html">gocov-html</a></div><div id="pkg_github.com/ryanbradynd05/go-tmdb" class="funcname">Package Overview: github.com/ryanbradynd05/go-tmdb <span class="packageTotal">100.00%</span></div><p>This is a coverage report created after analysis of the <code>github.com/ryanbradynd05/go-tmdb</code> package. It
<div id="about">Generated on 09 Feb 15 20:28 -0500 with <a href="https://github.com/matm/gocov-html">gocov-html</a></div><div id="pkg_github.com/ryanbradynd05/go-tmdb" class="funcname">Package Overview: github.com/ryanbradynd05/go-tmdb <span class="packageTotal">100.00%</span></div><p>This is a coverage report created after analysis of the <code>github.com/ryanbradynd05/go-tmdb</code> package. It
has been generated with the following command:</p><pre class="cmd">gocov test github.com/ryanbradynd05/go-tmdb | gocov-html</pre> <p>Here are the stats. Please select a function name to view its implementation and see what's left for testing.</p><table class="overview">
<tr id="s_fn_TMDb.SearchTv"><td><code><a href="#fn_TMDb.SearchTv">TMDb.SearchTv(...)</a></code></td><td><code>github.com/ryanbradynd05/go-tmdb/search.go</code></td><td class="percent"><code>100.00%</code></td><td class="linecount"><code>7/7</code></td></tr>
<tr id="s_fn_TMDb.SearchKeyword"><td><code><a href="#fn_TMDb.SearchKeyword">TMDb.SearchKeyword(...)</a></code></td><td><code>github.com/ryanbradynd05/go-tmdb/search.go</code></td><td class="percent"><code>100.00%</code></td><td class="linecount"><code>7/7</code></td></tr>
Expand Down
3 changes: 2 additions & 1 deletion local.yml.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ user: ""
pw: ""
session: ""
guestSession: ""
accountID: 0
accountID: 0
testKey: ""
3 changes: 1 addition & 2 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import (
"testing"
)

const testKey string = "b12bd26ee15e6972f2f4c03363b74fa2"

func Test(t *testing.T) { TestingT(t) }

type TmdbSuite struct {
Expand All @@ -38,6 +36,7 @@ func (s *TmdbSuite) SetUpSuite(c *C) {
s.guestSession, _ = config.Get("guestSession")
accountID, _ := config.Get("accountID")
s.accountID, _ = strconv.Atoi(accountID)
testKey, _ := config.Get("testKey")
s.tmdb = Init(testKey)
}

Expand Down

0 comments on commit 5ab02a0

Please sign in to comment.