Skip to content

Commit

Permalink
MovieDetails add OriginCountry (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
labulakalia committed Jul 24, 2024
1 parent 059618b commit e984d24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions movies.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ type MovieDetails struct {
Overview string `json:"overview"`
Popularity float32 `json:"popularity"`
PosterPath string `json:"poster_path"`
OriginCountry []string `json:"origin_country"`
ProductionCompanies []struct {
Name string `json:"name"`
ID int64 `json:"id"`
Expand Down
1 change: 1 addition & 0 deletions movies_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ func (suite *TMBDTestSuite) TestGetMovieDetails() {
bumblebee, err := suite.client.GetMovieDetails(bumblebeeID, nil)
suite.Nil(err)
suite.Equal("Bumblebee", bumblebee.Title)
suite.Equal([]string{"US"}, bumblebee.OriginCountry)
}

func (suite *TMBDTestSuite) TestGetMovieDetailsFail() {
Expand Down

0 comments on commit e984d24

Please sign in to comment.