Skip to content
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

Ruby - Laura Perez #81

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

Conversation

lauraemiliaperez
Copy link

No description provided.

Copy link

@nancy-harris nancy-harris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent job! I left comments below on places where the code could be cleaner/simpler. Great job on adding commits often! It would be great if the commit messages could be more descriptive about the changes that were made to the code. Something like "Created Vendor class" would be great!

from swap_meet.item import Item
class Clothing(Item):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent!

@@ -1,2 +1,13 @@
class Decor:
from swap_meet.item import Item
class Decor(Item):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent!

@@ -1,2 +1,9 @@
class Electronics:
pass
from swap_meet.item import Item

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent!

@@ -1,2 +1,44 @@
import uuid

class Item:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent!

def __init__(self, inventory=None):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent!

Comment on lines +107 to +115
assert result is True
assert len(tai.inventory) == 3
assert len(jesse.inventory) == 3
assert item_d in jesse.inventory
assert item_e in jesse.inventory
assert item_c in jesse.inventory
assert item_f in tai.inventory
assert item_a in tai.inventory
assert item_b in tai.inventory

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent!

Comment on lines +148 to +156
assert result is True
assert len(tai.inventory) == 3
assert len(jesse.inventory) == 3
assert item_d in jesse.inventory
assert item_e in jesse.inventory
assert item_c in jesse.inventory
assert item_f in tai.inventory
assert item_a in tai.inventory
assert item_b in tai.inventory

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent!

Comment on lines +239 to +247
assert not result
assert len(tai.inventory) == 3
assert len(jesse.inventory) == 3
assert item_a in tai.inventory
assert item_b in tai.inventory
assert item_c in tai.inventory
assert item_d in jesse.inventory
assert item_e in jesse.inventory
assert item_f in jesse.inventory

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent!

Comment on lines +280 to +288
assert not result
assert len(tai.inventory) == 3
assert len(jesse.inventory) == 3
assert item_a in tai.inventory
assert item_b in tai.inventory
assert item_c in tai.inventory
assert item_d in jesse.inventory
assert item_e in jesse.inventory
assert item_f in jesse.inventory

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent!


#swap by newest
#my_tests:
def test_swap_by_newest():

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent job adding your own tests for the optional enhancements you did!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants