Coder Social home page Coder Social logo

databases's Introduction

Привет!

Меня зовут Евгений. Живу в Уфе, Башкирия, РФ.

По основной работе пишу с использованием фреймворка Odoo (Python, HTML+CSS+JS). В свободное от работы время занимаюсь следующими проектами:

RSS-Bridge

  • Сопровождаю скрипты генерации RSS-лент для ВК, Пикабу, Rutube и изредка Youtube
  • Сопроваждал проект с июля 2020 по март 2022
  • Админю https://feed.eugenemolotov.ru

Проекты связанные к Quake Live

  • minqlx + minqlx-plugins - расширение возможностей сервера Quake Live, посредством добавления скриптов на Python
  • Quake Live Local Ratings - сервис рейтингов игроков с внутри-игровым API

databases's People

Contributors

blueyed avatar em92 avatar florimondmanca avatar gvbgduh avatar mivade avatar perdy avatar pvanliefland avatar ricardomomm avatar shamrin avatar sm-fifteen avatar tomchristie avatar weargoggles avatar

Watchers

 avatar  avatar  avatar

databases's Issues

Failing tests


database_url = 'sqlite:///test.db'

    @pytest.mark.parametrize("database_url", DATABASE_URLS)
    @async_adapter
    async def test_datetime_field(database_url):
        """
        Test DataTime columns, to ensure records are coerced to/from proper Python types.
        """
    
        async with Database(database_url) as database:
            async with database.transaction(force_rollback=True):
                now = datetime.datetime.now().replace(microsecond=0)
    
                # execute()
                query = articles.insert()
                values = {"title": "Hello, world", "published": now}
                await database.execute(query, values)
    
                # fetch_all()
                query = articles.select()
                results = await database.fetch_all(query=query)
                assert len(results) == 1
>               assert results[0]["title"] == "Hello, world"
E               AssertionError: assert '2019-02-19 11:29:46.000000' == 'Hello, world'
E                 - 2019-02-19 11:29:46.000000
E                 + Hello, world

tests/test_databases.py:308: AssertionError
____________________________________________________________________________ test_custom_field[sqlite:///test.db] ____________________________________________________________________________

database_url = 'sqlite:///test.db'

    @pytest.mark.parametrize("database_url", DATABASE_URLS)
    @async_adapter
    async def test_custom_field(database_url):
        """
        Test custom column types.
        """
    
        async with Database(database_url) as database:
            async with database.transaction(force_rollback=True):
                today = datetime.date.today()
    
                # execute()
                query = custom_date.insert()
                values = {"title": "Hello, world", "published": today}
                await database.execute(query, values)
    
                # fetch_all()
                query = custom_date.select()
                results = await database.fetch_all(query=query)
                assert len(results) == 1
>               assert results[0]["title"] == "Hello, world"
E               AssertionError: assert '17946' == 'Hello, world'
E                 - 17946
E                 + Hello, world

tests/test_databases.py:353: AssertionError

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.