Coder Social home page Coder Social logo

ericfillion / cmpe-327 Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.12 MB

A course project where we created a ticket selling web application while following professional SWE standards.

License: MIT License

Python 89.49% HTML 7.29% Dockerfile 0.11% Shell 3.11%

cmpe-327's Introduction

cmpe-327's People

Contributors

charasyn avatar ericfillion avatar jolenelammers avatar tingzhoujia avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

cmpe-327's Issues

Formatting error for frontend tests

As shown in the photo below, there needs to be an additional new line in the frontend-tests.md file. Assume that the file is called "frontend-tests.md" and not "frontend_tests.md" because we'll merge PR #26 first.

Screen Shot 2020-10-17 at 8 25 11 PM

Error on test teardown relating to temp. DB

With the new temporary database file, we are getting some erroneous behaviour during test teardown.
The process cannot access the file because it is being used by another process: <DB file>

Cases already covered for buy test

image

Wouldn't the first three cases covered by the fourth case, as if the ticket exists it should meet those requirements. And even if somehow the ticket exists and doesn't meet those requirements, that shouldn't be a constraint when buying the ticket as you should be able to buy any of the tickets that are there.

Eric think you had a similar question about the password requirements when logging in.

GitHub Testing Actions

Hey, I'm trying to write the section about the testing framework for A1, and I had a few questions about the GitHub testing.
Does anyone know if the testing actions are set up on GitHub at the moment? I don't think they are, since otherwise it would be checking each pull request we submit, right?
To my understanding we're supposed to have automated testing on every change that goes into the codebase - is that right? If so I can set it up after A1 is done, I just have to know what to put in response to "[our team's] understandings of when and how the test cases will be running directly on GitHub".

Recommended practice: avoid raw sql

Hello. Not an actual bug but just a recommended practice to avoid future failure or code vulnerability:

avoid raw static SQL string/template as much as possible

sql = "DELETE FROM User WHERE email='[email protected]'"
print(db.session.execute(sql))

sql = "DELETE FROM User WHERE email='[email protected]'"
print(db.session.execute(sql))

Problem with the provided specifications

I found a problem with the specifications they gave us. According to R7, the /logout endpoint is only supposed to support the HTTP POST method. However, in the example testcases, the instructions state "Open /logout". Assuming that "opening" a page refers to navigating the web browser to that page, this will perform the HTTP GET method, which is unsupported by the /logout endpoint and should result in a 404 as per R8.

This is obviously not the intended behaviour. How should we deal with this discrepancy? Should we reach out to the teaching staff so they can revise the specifications?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.