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
Zoisite - Sabs F & Yael P #58
Open
sabsford
wants to merge
17
commits into
Ada-C19:main
Choose a base branch
from
sabsford: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
17 commits
Select commit
Hold shift + click to select a range
d7c80e8
created functions
sabsford f42b60a
first two functions completed
sabsford 05a0601
Finish wave 1
yaelsilvermanpeet d5aea06
wave one and test of wave one completed
sabsford 9e1dd80
Yael test commit
yaelsilvermanpeet a8a8ab1
yael test wave 1
yaelsilvermanpeet c72dac3
test wave 3 and wave 2 complete
yaelsilvermanpeet 52cf857
wave 3 and test completed
sabsford f906d47
fixed merge conflict
sabsford 2d81608
wave 2
yaelsilvermanpeet eca40cd
Co-authored-by: Yiskah-S <Yiskah-S@users.noreply.github.com>
yaelsilvermanpeet 54950c0
fixed wave1
sabsford b2477bf
return data
yaelsilvermanpeet 0c156db
Merge branch 'main' of https://github.com/sabsford/viewing-party
yaelsilvermanpeet b93a028
wave 4 complete
yaelsilvermanpeet d17feef
refactor wave 4
yaelsilvermanpeet 978246f
wave 5 complete
sabsford 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
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
from viewing_party.party import * | ||
from tests.test_constants import * | ||
|
||
@pytest.mark.skip() | ||
# @pytest.mark.skip() | ||
def test_my_unique_movies(): | ||
# Arrange | ||
amandas_data = clean_wave_3_data() | ||
|
@@ -16,7 +16,7 @@ def test_my_unique_movies(): | |
assert INTRIGUE_2 in amandas_unique_movies | ||
assert amandas_data == clean_wave_3_data() | ||
|
||
@pytest.mark.skip() | ||
# @pytest.mark.skip() | ||
def test_my_not_unique_movies(): | ||
# Arrange | ||
amandas_data = clean_wave_3_data() | ||
|
@@ -28,7 +28,7 @@ def test_my_not_unique_movies(): | |
# Assert | ||
assert len(amandas_unique_movies) == 0 | ||
|
||
@pytest.mark.skip() | ||
# @pytest.mark.skip() | ||
def test_friends_unique_movies(): | ||
# Arrange | ||
amandas_data = clean_wave_3_data() | ||
|
@@ -43,7 +43,7 @@ def test_friends_unique_movies(): | |
assert FANTASY_4 in friends_unique_movies | ||
assert amandas_data == clean_wave_3_data() | ||
|
||
@pytest.mark.skip() | ||
# @pytest.mark.skip() | ||
def test_friends_unique_movies_not_duplicated(): | ||
# Arrange | ||
amandas_data = clean_wave_3_data() | ||
|
@@ -54,13 +54,14 @@ def test_friends_unique_movies_not_duplicated(): | |
|
||
# Assert | ||
assert len(friends_unique_movies) == 3 | ||
|
||
raise Exception("Test needs to be completed.") | ||
# ************************************************************************************************* | ||
# ****** Add assertions here to test that the correct movies are in friends_unique_movies ********** | ||
# ************************************************************************************************** | ||
|
||
@pytest.mark.skip() | ||
# assert INTRIGUE_3 in friends_unique_movies | ||
# assert HORROR_1 in friends_unique_movies | ||
# assert FANTASY_4 in friends_unique_movies | ||
assert friends_unique_movies.count(INTRIGUE_3) == 1 | ||
assert friends_unique_movies.count(HORROR_1) == 1 | ||
assert friends_unique_movies.count(FANTASY_4) == 1 | ||
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. Nice use of the count method in these asserts! |
||
|
||
# @pytest.mark.skip() | ||
def test_friends_not_unique_movies(): | ||
# Arrange | ||
amandas_data = { | ||
|
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
from viewing_party.party import * | ||
from tests.test_constants import * | ||
|
||
@pytest.mark.skip() | ||
# @pytest.mark.skip() | ||
def test_new_genre_rec(): | ||
# Arrange | ||
sonyas_data = clean_wave_5_data() | ||
|
@@ -17,7 +17,7 @@ def test_new_genre_rec(): | |
assert FANTASY_4b in recommendations | ||
assert sonyas_data == clean_wave_5_data() | ||
|
||
@pytest.mark.skip() | ||
# @pytest.mark.skip() | ||
def test_new_genre_rec_from_empty_watched(): | ||
# Arrange | ||
sonyas_data = { | ||
|
@@ -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,13 +52,15 @@ def test_new_genre_rec_from_empty_friends(): | |
} | ||
] | ||
} | ||
#Act step | ||
actual_output = get_new_rec_by_genre(sonyas_data) | ||
|
||
raise Exception("Test needs to be completed.") | ||
# ********************************************************************* | ||
# ****** Complete the Act and Assert Portions of these tests ********** | ||
# ********************************************************************* | ||
#the assert i wrote, lets hope this works | ||
assert actual_output == [] | ||
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. This assert works! |
||
|
||
|
||
@pytest.mark.skip() | ||
|
||
# @pytest.mark.skip() | ||
def test_unique_rec_from_favorites(): | ||
# Arrange | ||
sonyas_data = clean_wave_5_data() | ||
|
@@ -72,7 +74,7 @@ def test_unique_rec_from_favorites(): | |
assert INTRIGUE_2b in recommendations | ||
assert sonyas_data == clean_wave_5_data() | ||
|
||
@pytest.mark.skip() | ||
# @pytest.mark.skip() | ||
def test_unique_from_empty_favorites(): | ||
# Arrange | ||
sonyas_data = { | ||
|
@@ -94,7 +96,7 @@ def test_unique_from_empty_favorites(): | |
# Assert | ||
assert len(recommendations) == 0 | ||
|
||
@pytest.mark.skip() | ||
# @pytest.mark.skip() | ||
def test_new_rec_from_empty_friends(): | ||
# Arrange | ||
sonyas_data = { | ||
|
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.
You have two of the same assert statements here. Just be careful with that! Also, when we write equality asserts, it is typically best practice for the constants to be on the right had side of the assignment.