Giter Club home page Giter Club logo

mototest's Introduction

mototest

Virtual ENV

namrata.patel@STSLP42  ~/PycharmProjects/mototest
$ virtualenv myenv2

Installing requirements

(myenv2)
namrata.patel@STSLP42  ~/PycharmProjects/mototest
$ pip install -r requirements.txt

Run Tests

lap  /d/orchardws/mototest (master)
$ py.test tests/ -v

Results:

============================= test session starts =============================
platform win32 -- Python 3.4.3, pytest-2.8.0, py-1.4.32, pluggy-0.3.1 -- c:\python34\python.exe
cachedir: tests\.cache
rootdir: D:\orchardws\mototest\tests, inifile:
plugins: mock-1.2, cov-2.2.0
collecting ... collected 1 items

tests\test_localization_db.py::test_one FAILED

================================== FAILURES ===================================
__________________________________ test_one ___________________________________

    def test_one():
        connection = get_resource()
>       main(connection)

tests\test_localization_db.py:62:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
C:\Python34\Lib\site-packages\moto\core\models.py:70: in wrapper
    result = func(*args, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

dynamodb = dynamodb.ServiceResource()

    @mock_dynamodb2
    def main(dynamodb):

            # Create the DynamoDB table.
            table = dynamodb.create_table(
                TableName='test-product_localization',
                KeySchema=[
                    {
                        'AttributeName': 'product_id',
                        'KeyType': 'HASH'
                    },
                    {
                        'AttributeName': 'language_id',
                        'KeyType': 'RANGE'
                    }
                ],
                AttributeDefinitions=[
                    {
                        'AttributeName': 'product_id',
                        'AttributeType': 'S'
                    },
                    {
                        'AttributeName': 'language_id',
                        'AttributeType': 'S'
                    },
                ],
                ProvisionedThroughput={
                    'ReadCapacityUnits': 5,
                    'WriteCapacityUnits': 5
                }
            )

            # Wait until the table exists.
>           table.meta.client.get_waiter('table_exists').wait(TableName='test-product_localization')
E           AttributeError: 'dict' object has no attribute 'meta'

tests\test_localization_db.py:44: AttributeError
========================== 1 failed in 2.24 seconds ===========================

System details

(myenv2)
lap  ~/PycharmProjects/mototest
$ python --version
Python 3.4.3
(myenv2)
lap  ~/PycharmProjects/mototest
$ pip --version
pip 9.0.1 from C:\Python34\Lib\site-packages (python 3.4)

mototest's People

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.