Git Product home page Git Product logo

filed_assignment's Introduction

                                                          Filed Assesment Assignment

1.To Run the project clone it first using the "command git clone "

2.Open it using your prefered ide ,lets suppose pycharm.

3.Check the version of correct python version using the command python3 -V i.e 3.6 if not please switch to it.

4.Create virtual environment using python3 -m venv i.e python3 -m venv filed_env

5.Install all the requirements using the command "pip3 install -m requirements.txt"

6.create the database named filedb.

7.Do make migrations and migrate using the command "python manage.py makemigrations" and "python manage.py makemigrations" one after another.

8.Create a superuser if you like using the command python manage.py createsuperuser

9.Now ,in order to test the api ,we can test via different way: 1.Run the unit testing command i.e " python manage.py test " I have written some 13 test cases as per my knowledge in test.py with different status code. If you want to test for some other scenario ,please add new test cases as per your requirements 2.Check manually for all cases in postman : The data is : Put it in body form-data and the url is " http://127.0.0.1:8000/payment/ " { CreditCardNumber:4454233323435433 CardHolder:Sunny ExpirationDate:2021-03-02 SecurityCode:332 Amount:10 } And check for different test cases by changing the value, i will be attaching postman collection for your need.

Also some things were not clear from the pdf i got i.e the 3 payment gateway i have to use here is some 3rd party API or we have to pass of our own ,so i did things as per my knowledge, please let me know if there any changes.

filed_assignment's People

Contributors

itssunny322 avatar

Watchers

 avatar  avatar

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.