forked from AdaGold/viewing-party
-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sapphire - Sophia & Janice #59
Open
sophiat8832
wants to merge
21
commits into
Ada-C19:main
Choose a base branch
from
sophiat8832:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
59e4492
added pair plan to README file
janice15 caa1837
completed create_movie function
janice15 7f98a24
completed add_to_watched function
sophiat8832 d62602b
completed add to watchlist
janice15 b2a2984
completed test moves_movie_from_watchlist_to_empty_watched
sophiat8832 05b7727
completed test moves_movie_from_watchlist_to_watched
sophiat8832 f4ce16c
completed watch_movie
sophiat8832 dbff1f5
completed get_watched_avg_rating
janice15 a253f04
completed get_most_watched_genre
sophiat8832 5708563
completed get unique watched function
janice15 f27b754
completed test_wave_03
sophiat8832 1d86465
completed get_friends_unique_watched function
sophiat8832 88c7dae
completed get available recs function
janice15 dc26f66
completed get_new_rec_by_genre
sophiat8832 a1218e2
completed test test new genre rec from empty friends
janice15 062e37b
completed get_rec_from_favorites
sophiat8832 ff24843
refactored functions in Wave 1
sophiat8832 18bbd38
refactored functions in Wave 2
sophiat8832 e49f5a6
refactored Wave 3 functions
sophiat8832 a7fde5a
Added comments to code
sophiat8832 4471126
refactored code
janice15 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
from viewing_party.party import * | ||
from tests.test_constants import * | ||
|
||
@pytest.mark.skip() | ||
# @pytest.mark.skip() | ||
def test_create_successful_movie(): | ||
# Arrange | ||
movie_title = MOVIE_TITLE_1 | ||
|
@@ -19,7 +19,7 @@ def test_create_successful_movie(): | |
assert new_movie["genre"] == GENRE_1 | ||
assert new_movie["rating"] == pytest.approx(RATING_1) | ||
|
||
@pytest.mark.skip() | ||
# @pytest.mark.skip() | ||
def test_create_no_title_movie(): | ||
# Arrange | ||
movie_title = None | ||
|
@@ -32,7 +32,7 @@ def test_create_no_title_movie(): | |
# Assert | ||
assert new_movie is None | ||
|
||
@pytest.mark.skip() | ||
# @pytest.mark.skip() | ||
def test_create_no_genre_movie(): | ||
# Arrange | ||
movie_title = "Title A" | ||
|
@@ -45,7 +45,7 @@ def test_create_no_genre_movie(): | |
# Assert | ||
assert new_movie is None | ||
|
||
@pytest.mark.skip() | ||
# @pytest.mark.skip() | ||
def test_create_no_rating_movie(): | ||
# Arrange | ||
movie_title = "Title A" | ||
|
@@ -58,7 +58,7 @@ def test_create_no_rating_movie(): | |
# Assert | ||
assert new_movie is None | ||
|
||
@pytest.mark.skip() | ||
# @pytest.mark.skip() | ||
def test_adds_movie_to_user_watched(): | ||
# Arrange | ||
movie = { | ||
|
@@ -79,7 +79,7 @@ def test_adds_movie_to_user_watched(): | |
assert updated_data["watched"][0]["genre"] == GENRE_1 | ||
assert updated_data["watched"][0]["rating"] == RATING_1 | ||
|
||
@pytest.mark.skip() | ||
# @pytest.mark.skip() | ||
def test_adds_movie_to_non_empty_user_watched(): | ||
# Arrange | ||
movie = { | ||
|
@@ -99,7 +99,7 @@ def test_adds_movie_to_non_empty_user_watched(): | |
assert movie in updated_data["watched"] | ||
assert FANTASY_2 in updated_data["watched"] | ||
|
||
@pytest.mark.skip() | ||
# @pytest.mark.skip() | ||
def test_adds_movie_to_user_watchlist(): | ||
# Arrange | ||
movie = { | ||
|
@@ -120,7 +120,7 @@ def test_adds_movie_to_user_watchlist(): | |
assert updated_data["watchlist"][0]["genre"] == GENRE_1 | ||
assert updated_data["watchlist"][0]["rating"] == RATING_1 | ||
|
||
@pytest.mark.skip() | ||
# @pytest.mark.skip() | ||
def test_adds_movie_to_non_empty_user_watchlist(): | ||
# Arrange | ||
movie = { | ||
|
@@ -140,7 +140,7 @@ def test_adds_movie_to_non_empty_user_watchlist(): | |
assert movie in updated_data["watchlist"] | ||
assert FANTASY_2 in updated_data["watchlist"] | ||
|
||
@pytest.mark.skip() | ||
# @pytest.mark.skip() | ||
def test_moves_movie_from_watchlist_to_empty_watched(): | ||
# Arrange | ||
janes_data = { | ||
|
@@ -158,13 +158,14 @@ def test_moves_movie_from_watchlist_to_empty_watched(): | |
# Assert | ||
assert len(updated_data["watchlist"]) == 0 | ||
assert len(updated_data["watched"]) == 1 | ||
assert updated_data["watched"][0]["title"] == MOVIE_TITLE_1 | ||
|
||
raise Exception("Test needs to be completed.") | ||
# raise Exception("Test needs to be completed.") | ||
# ******************************************************************************************* | ||
# ****** Add assertions here to test that the correct movie was added to "watched" ********** | ||
# ******************************************************************************************* | ||
|
||
@pytest.mark.skip() | ||
# @pytest.mark.skip() | ||
def test_moves_movie_from_watchlist_to_watched(): | ||
# Arrange | ||
movie_to_watch = HORROR_1 | ||
|
@@ -182,13 +183,14 @@ def test_moves_movie_from_watchlist_to_watched(): | |
# Assert | ||
assert len(updated_data["watchlist"]) == 1 | ||
assert len(updated_data["watched"]) == 2 | ||
assert updated_data["watched"][1] == movie_to_watch | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
|
||
raise Exception("Test needs to be completed.") | ||
# raise Exception("Test needs to be completed.") | ||
# ******************************************************************************************* | ||
# ****** Add assertions here to test that the correct movie was added to "watched" ********** | ||
# ******************************************************************************************* | ||
|
||
@pytest.mark.skip() | ||
# @pytest.mark.skip() | ||
def test_does_nothing_if_movie_not_in_watchlist(): | ||
# Arrange | ||
movie_to_watch = HORROR_1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,7 @@ def test_new_genre_rec_from_empty_watched(): | |
# Assert | ||
assert len(recommendations) == 0 | ||
|
||
@pytest.mark.skip() | ||
# @pytest.mark.skip() | ||
def test_new_genre_rec_from_empty_friends(): | ||
# Arrange | ||
sonyas_data = { | ||
|
@@ -52,12 +52,17 @@ def test_new_genre_rec_from_empty_friends(): | |
} | ||
] | ||
} | ||
# Act | ||
recommendations = get_new_rec_by_genre(sonyas_data) | ||
|
||
raise Exception("Test needs to be completed.") | ||
#Assert | ||
assert len(recommendations) == 0 | ||
# raise Exception("Test needs to be completed.") | ||
Comment on lines
+56
to
+60
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
# ********************************************************************* | ||
# ****** Complete the Act and Assert Portions of these tests ********** | ||
# ********************************************************************* | ||
|
||
|
||
|
||
@pytest.mark.skip() | ||
def test_unique_rec_from_favorites(): | ||
# Arrange | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️ Love the clear communication between you two!