Code Monkey home page Code Monkey logo

pp-flask's Introduction

PP-flask

  1. Клонувати репозиторій.
  2. Створити й активувати віртуальне середовище.
  3. Встановити залежності.
  4. Запустити WSGI-сервер.

C:\Users\Andri\AppData\Local\Programs\Python\Python37\python.exe -m pip install set

{ "username": "user", "email": "[email protected]", "password": "1233" } C:\Users\Andri\AppData\Local\pypoetry\Cache\virtualenvs\pp-flask-1o64LXyr-py3.7\Scripts\activate python -m unittest -v coverage run -m unittest -v coverage report -m

python -m unittest test_app coverage run -m unittest test_app coverage report -m

headers={ # 'Authorization': 'Basic ' + base64.b64encode(user['username'] + ":" + user['password']), # 'Authorization': 'Basic ' + base64.b64encode(bytes(user['username'] + ":" + user['password'], 'ascii')).decode('ascii'),

                         },
                         
                         
                   
def test_users_post(self):
    post_data = json.dumps(
        {
            "username": "hhh",
            "email": "[email protected]",
            "password": "1233"
        }
    )

    response = self.app.post('users', headers={"Content-Type": "application/json"}, data=post_data)
    self.assertEqual(201, response.status_code)


def test_re(self):
    self.assertEqual(2, 2)

pp-flask's People

Contributors

borysmandryk avatar cotyhoroshko avatar duhjent avatar

Stargazers

 avatar  avatar

Watchers

 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.