Skip to content
Snippets Groups Projects
Commit 27d8aa75 authored by Holger Nahrstaedt's avatar Holger Nahrstaedt
Browse files

fix unit test

parent 154de1cc
No related branches found
No related tags found
No related merge requests found
# THIS FILE IS GENERATED FROM beem SETUP.PY
""" THIS FILE IS GENERATED FROM beem SETUP.PY
"""
version = '0.19.11'
# THIS FILE IS GENERATED FROM beem SETUP.PY
""" THIS FILE IS GENERATED FROM beem SETUP.PY
"""
version = '0.19.11'
# THIS FILE IS GENERATED FROM beem SETUP.PY
""" THIS FILE IS GENERATED FROM beem SETUP.PY
"""
version = '0.19.11'
# THIS FILE IS GENERATED FROM beem SETUP.PY
""" THIS FILE IS GENERATED FROM beem SETUP.PY
"""
version = '0.19.11'
# THIS FILE IS GENERATED FROM beem SETUP.PY
""" THIS FILE IS GENERATED FROM beem SETUP.PY
"""
version = '0.19.11'
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Packaging logic for beem."""
import codecs
import io
import os
import sys
import io
from setuptools import setup
# Work around mbcs bug in distutils.
# http://bugs.python.org/issue10945
import codecs
try:
codecs.lookup('mbcs')
except LookupError:
......@@ -34,8 +36,11 @@ requires = [
def write_version_py(filename):
""" Write version
"""
cnt = """
# THIS FILE IS GENERATED FROM beem SETUP.PY
\""" THIS FILE IS GENERATED FROM beem SETUP.PY
\"""
version = '%(version)s'
"""
with open(filename, 'w') as a:
......
......@@ -43,5 +43,5 @@ class Testcases(unittest.TestCase):
def test_block_ops(self):
bts = self.bts
block = Block(20000000, steem_instance=bts)
self.assertTrue(len(block.ops))
self.assertTrue(len(block.ops()))
self.assertTrue(isinstance(block.ops_statistics(), dict))
......@@ -22,7 +22,7 @@ deps=
pep8-naming
flake8-colors
commands=
flake8 beem beemapi beembase beemgraphenebase beemgrapheneapi tests
flake8 beem beemapi beembase beemgraphenebase beemgrapheneapi setup.py
[testenv:pylint]
deps=
......@@ -99,7 +99,7 @@ commands =
# defaults to selecting all other errors so we do not need select=E,F,W,I,D
# Once Flake8 3.0 is released and in a good state, we can use both and it will
# work well \o/
ignore = D203
ignore = D203,E129,E501,F401,E722,E122,E111,E114,D102,D100,D103,D107
exclude =
.tox,
.git,
......@@ -115,4 +115,4 @@ exclude =
max-complexity = 10
import-order-style = google
application-import-names = flake8
format = ${cyan}%(path)s${reset}:${yellow_bold}%(row)d${reset}:${green_bold}%(col)d${reset}: ${red_bold}%(code)s${reset} %(text)s
# format = ${cyan}%(path)s${reset}:${yellow_bold}%(row)d${reset}:${green_bold}%(col)d${reset}: ${red_bold}%(code)s${reset} %(text)s
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment