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

Ike complete order database refactor #33

Merged
merged 6 commits into from
Feb 13, 2017

Conversation

consumerike
Copy link
Contributor

Description

Complete an order by tying payment type to order and setting payment complete to 1.

Number of Fixes

#6 , #9, #20,

Related Ticket(s)

#1 ,

Problem to Solve

Describe the problem(s) this pull request solves.
Tests a customer can complete an order e.g.-Allows a customer to complete an order (add payment type to an order and set order complete to 1)

Proposed Changes

Describe the proposed changes.

Expected Behavior

Describe the expected behavior.
Within the database, selected order should be 1

Steps to Test Solution

  1. git fetch
  2. drop database
  3. go to tests folder; run python runtests.py

Testing

[x ] There are new unit tests in this PR, and I verify that there is full coverage of all new code.
[ x] I certify that all existing tests pass

Documentation

[ x] There is new documentation in this pull request that must be reviewed..
[ x] I added documentation for any new classes/methods

Deploy Notes

Notes regarding deployment the contained body of work. These should note any
db migrations, etc.

Copy link
Contributor

@stevenwally stevenwally left a comment

Choose a reason for hiding this comment

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

you the main banana 🍌

tests pass!

@sales-ls21
Copy link
Contributor

MAIN BANANAS 🍌 🍌 🍌

@ZoeLeBlanc
Copy link
Contributor

works amazing!!!! RUNS ALL THE TESTS 🥇 👍 it's bananas 🍌

@consumerike consumerike merged commit 9635e6b into master Feb 13, 2017



# except:

Choose a reason for hiding this comment

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

Please remove commented code before submitting a PR.

@@ -47,6 +47,7 @@ def add_product_to_order(self, product):
AND quantity = {}
""".format(product.get_product_title(), product.get_product_description(), product.get_product_price(), product.get_product_quantity()))
selected_product = cursor.fetchone()
print(selected_product, "this is selected prod w zoe")

Choose a reason for hiding this comment

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

Remove debugging statements before submitting a PR

selected_product = cursor.fetchone()
cursor.close()

rfk = Customer("Robert Kennedy", '1919 Heron Pointe Dr', "Nashville", "TN", 37214, '8888978880')

Choose a reason for hiding this comment

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

Some white space to break up the code into conceptual blocks, along with comments, will make this code easier to read

@sales-ls21 sales-ls21 deleted the ike-complete-order-database-refactor branch February 13, 2017 21:54
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.

None yet

5 participants