Merge commit 'e0543de8ef5c1f67d4064e84a5e7ecacbdf1029e' into py23

This commit is contained in:
Matthias Urlichs committed 2019-01-27 17:15:52 +01:00
commit 958fc7600d
109 files changed
+231 -98

No files matched your search

+3 -1
View File
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
# coding=utf-8
from __future__ import absolute_import, division, print_function
#
# OctoPrint documentation build configuration file, created by
# sphinx-quickstart on Mon Dec 02 17:08:50 2013.
+1 -1
View File
@@ -1,5 +1,5 @@
# coding=utf-8
from __future__ import absolute_import
from __future__ import absolute_import, division, print_function
__author__ = "Gina Häußge <osd@foosel.net>"
__license__ = 'The MIT License <http://opensource.org/licenses/MIT>'
+1 -1
View File
@@ -1,5 +1,5 @@
# coding=utf-8
from __future__ import absolute_import
from __future__ import absolute_import, division, print_function
__author__ = "Gina Häußge <osd@foosel.net>"
__license__ = 'The MIT License <http://opensource.org/licenses/MIT>'
+4 -2
View File
@@ -1,4 +1,6 @@
#!/usr/bin/env python2
# coding=utf-8
from __future__ import absolute_import, division, print_function
import os
import sys
@@ -8,12 +10,12 @@ basedir = os.path.dirname(os.path.realpath(__file__))
old = os.path.join(basedir, "octoprint")
if os.path.exists(old):
# rename left-overs from old file structure
print """
print("""
Found left-overs from old file structure, renaming to
"octoprint.backup". Please remove this manually (I don't
dare to do so myself since you might have changes in there
I don't know anything about).
"""
""")
os.rename(old, os.path.join(basedir, "octoprint.backup"))
sys.path.insert(0, os.path.join(basedir, "src"))
+1
View File
@@ -1,5 +1,6 @@
#!/usr/bin/env python2
# coding=utf-8
from __future__ import absolute_import, division, print_function
from setuptools import setup, find_packages
from distutils.command.build_py import build_py as _build_py
+2 -1
View File
@@ -1,3 +1,5 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
# This file helps to compute a version number in source trees obtained from
# git-archive tarball (such as those provided by githubs download-from-tag
@@ -9,7 +11,6 @@
# versioneer-0.15+dev (https://github.com/warner/python-versioneer)
"""Git implementation of _version.py."""
from __future__ import absolute_import, division, print_function
import errno
import io
+3 -2
View File
@@ -1,4 +1,6 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
Generic linux daemon base class
@@ -6,8 +8,7 @@ Originally from http://www.jejik.com/articles/2007/02/a_simple_unix_linux_daemon
"""
from __future__ import absolute_import, division, print_function
import io
import sys, os, time, signal
import io, sys, os, time, signal
class Daemon:
"""
+1 -1
View File
@@ -1,5 +1,5 @@
# coding=utf-8
from __future__ import absolute_import
from __future__ import absolute_import, division, print_function
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
__copyright__ = "Copyright (C) 2017 The OctoPrint Project - Released under terms of the AGPLv3 License"
@@ -1,5 +1,6 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
class FileDestinations(object):
+1 -1
View File
@@ -1,5 +1,5 @@
# coding=utf-8
from __future__ import absolute_import
from __future__ import absolute_import, division, print_function
from past.builtins import basestring
+1 -1
View File
@@ -1,5 +1,5 @@
# coding=utf-8
from __future__ import absolute_import
from __future__ import absolute_import, division, print_function
import logging.handlers
import os
+2 -2
View File
@@ -1,4 +1,6 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
This module represents OctoPrint's plugin subsystem. This includes management and helper methods as well as the
registered plugin types.
@@ -13,8 +15,6 @@ registered plugin types.
:members:
"""
from __future__ import absolute_import, division, print_function
__author__ = "Gina Häußge <osd@foosel.net>"
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License"
+2 -2
View File
@@ -1,4 +1,6 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
In this module resides the core data structures and logic of the plugin system. It is implemented in an OctoPrint-agnostic
way and could be extracted into a separate Python module in the future.
@@ -20,8 +22,6 @@ way and could be extracted into a separate Python module in the future.
"""
from __future__ import absolute_import, division, print_function
__author__ = "Gina Häußge <osd@foosel.net>"
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License"
+2 -2
View File
@@ -1,4 +1,6 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
This module bundles all of OctoPrint's supported plugin implementation types as well as their common parent
class, :class:`OctoPrintPlugin`.
@@ -16,8 +18,6 @@ Please note that the plugin implementation types are documented in the section
"""
from __future__ import absolute_import, division, print_function
__author__ = "Gina Häußge <osd@foosel.net>"
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License"
+3
View File
@@ -1 +1,4 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
# make our plugins testable
@@ -1,4 +1,5 @@
#!/bin/env python2
# coding=utf-8
from __future__ import absolute_import, division, print_function
__author__ = "Gina Haeussge <osd@foosel.net>"
@@ -1,5 +1,6 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
__author__ = "Gina Häußge <osd@foosel.net>"
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
+2 -2
View File
@@ -1,4 +1,6 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
This module defines the interface for communicating with a connected printer.
@@ -15,8 +17,6 @@ abstracted version of the actual printer communication.
:members:
"""
from __future__ import absolute_import, division, print_function
__author__ = "Gina Häußge <osd@foosel.net>"
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License"
+2 -2
View File
@@ -1,4 +1,6 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
This module contains printer profile related code.
@@ -137,8 +139,6 @@ A printer profile is a ``dict`` of the following structure:
.. autoclass:: InvalidProfileError
"""
from __future__ import absolute_import, division, print_function
__author__ = "Gina Häußge <osd@foosel.net>"
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License"
+2 -2
View File
@@ -1,10 +1,10 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
This module holds the standard implementation of the :class:`PrinterInterface` and it helpers.
"""
from __future__ import absolute_import, division, print_function
__author__ = "Gina Häußge <osd@foosel.net>"
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License"
+2 -2
View File
@@ -1,4 +1,6 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
This module represents OctoPrint's settings management. Within this module the default settings for the core
application are defined and the instance of the :class:`Settings` is held, which offers getter and setter
@@ -17,8 +19,6 @@ of various types and the configuration file itself.
:undoc-members:
"""
from __future__ import absolute_import, division, print_function
__author__ = "Gina Häußge <osd@foosel.net>"
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License"
+2 -2
View File
@@ -1,4 +1,6 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
In this module the slicing support of OctoPrint is encapsulated.
@@ -12,8 +14,6 @@ In this module the slicing support of OctoPrint is encapsulated.
:members:
"""
from __future__ import absolute_import, division, print_function
__author__ = "Gina Häußge <osd@foosel.net>"
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License"
+2 -2
View File
@@ -1,4 +1,6 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
Slicing related exceptions.
@@ -26,8 +28,6 @@ Slicing related exceptions.
"""
from __future__ import absolute_import, division, print_function
__author__ = "Gina Häußge <osd@foosel.net>"
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
__copyright__ = "Copyright (C) 2015 The OctoPrint Project - Released under terms of the AGPLv3 License"
+1
View File
@@ -1,5 +1,6 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
__author__ = "Gina Häußge <osd@foosel.net>"
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
+2
View File
@@ -0,0 +1,2 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
+2
View File
@@ -1,4 +1,6 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
avrChipDB = {
'ATMega1280': {
'signature': [0x1E, 0x97, 0x03],
+2
View File
@@ -1,4 +1,6 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
import io
from builtins import range
+2
View File
@@ -1,4 +1,6 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
import os, struct, sys, time
from serial import Serial
+2
View File
@@ -1,4 +1,6 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
import os, struct, sys, time
from serial import Serial
+1
View File
@@ -1,5 +1,6 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
__author__ = "Gina Häußge <osd@foosel.net> based on work by David Braam"
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2013 David Braam - Released under terms of the AGPLv3 License"
+3 -1
View File
@@ -1,8 +1,10 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
This module provides a bunch of utility methods and helpers FOR DEVELOPMENT ONLY.
"""
from __future__ import absolute_import, division, print_function
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
import contextlib
+1
View File
@@ -1,5 +1,6 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
__author__ = "Gina Häußge <osd@foosel.net> based on work by David Braam"
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
__copyright__ = "Copyright (C) 2013 David Braam, Gina Häußge - Released under terms of the AGPLv3 License"
+5 -4
View File
@@ -1,9 +1,6 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
import io
import os
import sys
"""
This "python package" doesn't actually install. This is intentional. It is merely
used to figure out some information about the environment a specific pip call
@@ -19,6 +16,10 @@ with versions of pip > 8.0.0, which capture all stdout output regardless of used
--verbose or --log flags.
"""
import io
import os
import sys
def produce_output(stream):
from distutils.command.install import install as cmd_install
from distutils.dist import Distribution
+2 -1
View File
@@ -1,8 +1,9 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
This module provides a bunch of utility methods and helpers for version handling.
"""
from __future__ import absolute_import, division, print_function
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
+2
View File
@@ -0,0 +1,2 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
+3
View File
@@ -1,3 +1,6 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
try:
__import__('pkg_resources').declare_namespace(__name__)
except ImportError:
+2 -1
View File
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
# coding=utf-8
from __future__ import absolute_import, division, print_function
from .router import SockJSRouter
from .conn import SockJSConnection
+3 -1
View File
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
sockjs.tornado.basehandler
~~~~~~~~~~~~~~~~~~~~~~~~~~
+3 -1
View File
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
sockjs.tornado.conn
~~~~~~~~~~~~~~~~~~~
+3 -1
View File
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
sockjs.tornado.migrate
~~~~~~~~~~~~~~~~~~~~~~
+3 -1
View File
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
sockjs.tornado.periodic
~~~~~~~~~~~~~~~~~~~~~~~
+3 -1
View File
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
sockjs.tornado.proto
~~~~~~~~~~~~~~~~~~~~
+3 -1
View File
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
sockjs.tornado.router
~~~~~~~~~~~~~~~~~~~~~
+3 -1
View File
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
sockjs.tornado.session
~~~~~~~~~~~~~~~~~~~~~~
+3 -1
View File
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
sockjs.tornado.sessioncontainer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+3 -1
View File
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
sockjs.tornado.static
~~~~~~~~~~~~~~~~~~~~~
+3
View File
@@ -1,3 +1,6 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
from collections import deque
from tornado import ioloop
+2 -1
View File
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
# coding=utf-8
from __future__ import absolute_import, division, print_function
import octoprint.vendor.sockjs.tornado.transports.pollingbase
@@ -1,3 +1,6 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
from octoprint.vendor.sockjs.tornado import session
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
sockjs.tornado.transports.eventsource
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+3 -1
View File
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
sockjs.tornado.transports.htmlfile
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+3 -1
View File
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
sockjs.tornado.transports.jsonp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
sockjs.tornado.transports.pollingbase
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
sockjs.tornado.transports.rawwebsocket
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -1,3 +1,6 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
from octoprint.vendor.sockjs.tornado.transports import pollingbase
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
sockjs.tornado.transports.websocket
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+3 -1
View File
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
sockjs.tornado.transports.xhr
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
sockjs.tornado.transports.xhrstreaming
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+3
View File
@@ -1,3 +1,6 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
import sys
PY3 = sys.version_info[0] == 3
+3
View File
@@ -1,3 +1,6 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
import tornado
from tornado import escape, gen, websocket
+2 -2
View File
@@ -1,5 +1,5 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
import sys
+2
View File
@@ -1,4 +1,6 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
Unit tests for octoprint.access
"""
+2 -1
View File
@@ -1,4 +1,5 @@
from __future__ import absolute_import
# coding=utf-8
from __future__ import absolute_import, division, print_function
def plugin_permissions(components):
+2
View File
@@ -1,4 +1,6 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
Unit tests for octoprint.access.groups
"""
+2
View File
@@ -1,4 +1,6 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
Unit tests for octoprint.access.groups.GroupManager
"""
+2 -1
View File
@@ -1,8 +1,9 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
Unit tests for octoprint.access.permissions
"""
from __future__ import absolute_import, division, print_function
import unittest
import ddt
+2
View File
@@ -1,4 +1,6 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
Unit tests for octoprint.access.users
"""
+2
View File
@@ -1,4 +1,6 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
Unit tests for octoprint.users.UserManager
"""
+2
View File
@@ -1,4 +1,6 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
Unit tests for octoprint.users
"""
+2 -2
View File
@@ -1,10 +1,10 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
Unit tests for ``octoprint.filemanager.``.
"""
from __future__ import absolute_import
__author__ = "Gina Häußge <osd@foosel.net>"
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License"
+1 -1
View File
@@ -1,5 +1,5 @@
# coding=utf-8
from __future__ import print_function
from __future__ import absolute_import, division, print_function
"""
Place in ~/.octoprint/plugins & restart server to test:
+2 -2
View File
@@ -1,10 +1,10 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
Unit tests for ``octoprint.plugin``.
"""
from __future__ import absolute_import
__author__ = "Gina Häußge <osd@foosel.net>"
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License"
@@ -1,3 +1,6 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
def callback(*args, **kwargs):
pass
+1 -1
View File
@@ -1,5 +1,5 @@
# coding=utf-8
from __future__ import absolute_import
from __future__ import absolute_import, division, print_function
import octoprint.plugin
+2 -1
View File
@@ -1,4 +1,5 @@
from __future__ import absolute_import
# coding=utf-8
from __future__ import absolute_import, division, print_function
def hook_startup():
@@ -1,5 +1,5 @@
# coding=utf-8
from __future__ import absolute_import
from __future__ import absolute_import, division, print_function
__author__ = "Gina Häußge <osd@foosel.net>"
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
@@ -1,3 +1,6 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
def callback(*args, **kwargs):
pass
+2 -1
View File
@@ -1,4 +1,5 @@
from __future__ import absolute_import
# coding=utf-8
from __future__ import absolute_import, division, print_function
import octoprint.plugin
+2 -1
View File
@@ -1,4 +1,5 @@
from __future__ import absolute_import
# coding=utf-8
from __future__ import absolute_import, division, print_function
import octoprint.plugin
+3
View File
@@ -1,3 +1,6 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
import unittest
import mock
import ddt
+3
View File
@@ -1,3 +1,6 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
import unittest
import mock
+3
View File
@@ -1,3 +1,6 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
import unittest
import mock
+2 -2
View File
@@ -1,10 +1,10 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
Unit tests for bundled plugins.
"""
from __future__ import absolute_import
__author__ = "Gina Häußge <osd@foosel.net>"
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
__copyright__ = "Copyright (C) 2017 The OctoPrint Project - Released under terms of the AGPLv3 License"
+2
View File
@@ -0,0 +1,2 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
@@ -1,2 +1,5 @@
#!/usr/bin/env python2
# coding=utf-8
from __future__ import absolute_import, division, print_function
print("throttled=0x50005")
@@ -1,3 +1,5 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
import unittest
import ddt
+2 -2
View File
@@ -1,10 +1,10 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
Unit tests for ``octoprint.printer``.
"""
from __future__ import absolute_import
__author__ = "Gina Häußge <osd@foosel.net>"
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License"
+1
View File
@@ -1,5 +1,6 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
from octoprint.printer.estimation import TimeEstimationHelper
__author__ = "Gina Häußge <osd@foosel.net>"
+2 -2
View File
@@ -1,10 +1,10 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
Unit tests for ``octoprint.server``.
"""
from __future__ import absolute_import
__author__ = "Gina Häußge <osd@foosel.net>"
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
__copyright__ = "Copyright (C) 2016 The OctoPrint Project - Released under terms of the AGPLv3 License"
+2 -2
View File
@@ -1,10 +1,10 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
Unit tests for ``octoprint.server.util``.
"""
from __future__ import absolute_import
__author__ = "Gina Häußge <osd@foosel.net>"
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
__copyright__ = "Copyright (C) 2016 The OctoPrint Project - Released under terms of the AGPLv3 License"
+2 -2
View File
@@ -1,10 +1,10 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
Unit tests for ``octoprint.server.util.flask``.
"""
from __future__ import absolute_import
__author__ = "Gina Häußge <osd@foosel.net>"
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
__copyright__ = "Copyright (C) 2016 The OctoPrint Project - Released under terms of the AGPLv3 License"
+2 -2
View File
@@ -1,10 +1,10 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
Unit tests for ``octoprint.server.util.tornado``.
"""
from __future__ import absolute_import
__author__ = "Gina Häußge <osd@foosel.net>"
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
__copyright__ = "Copyright (C) 2016 The OctoPrint Project - Released under terms of the AGPLv3 License"
+2 -2
View File
@@ -1,10 +1,10 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
Unit tests for ``octoprint.server.util.flask``.
"""
from __future__ import absolute_import
__author__ = "Gina Häußge <osd@foosel.net>"
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
__copyright__ = "Copyright (C) 2016 The OctoPrint Project - Released under terms of the AGPLv3 License"
+2 -2
View File
@@ -1,10 +1,10 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
Unit tests for ``octoprint.settings``.
"""
from __future__ import absolute_import
__author__ = "Gina Häußge <osd@foosel.net>"
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
__copyright__ = "Copyright (C) 2016 The OctoPrint Project - Released under terms of the AGPLv3 License"
+2
View File
@@ -1,4 +1,6 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
Tests for OctoPrint's Settings class
+2 -2
View File
@@ -1,10 +1,10 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
Unit tests for ``octoprint.slicing``.
"""
from __future__ import absolute_import
__author__ = "Gina Häußge <osd@foosel.net>"
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License"
+1
View File
@@ -1,5 +1,6 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
import _fixups
import unittest
+1
View File
@@ -1,4 +1,5 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
import unittest
import ddt
+2 -2
View File
@@ -1,9 +1,9 @@
# coding=utf-8
from __future__ import absolute_import, division, print_function
"""
Unit tests for ``octoprint.timelapse``.
"""
from __future__ import absolute_import
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
__copyright__ = "Copyright (C) 2016 The OctoPrint Project - Released under terms of the AGPLv3 License"
+1 -1
View File
@@ -1,5 +1,5 @@
# coding=utf-8
from __future__ import absolute_import
from __future__ import absolute_import, division, print_function
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
__copyright__ = "Copyright (C) 2016 The OctoPrint Project - Released under terms of the AGPLv3 License"
Loaded 100 of 109 files, more files were not shown because too many files have changed in this diff. Show more