Gina Häußge
6069d74a54
💚 Fix unit tests
2019-06-18 13:35:21 +02:00
Gina Häußge
b03d43156d
🐛 Strip interface tags from addresses on local check
...
Closes #3143 and Sentry SERVER-11B
2019-05-15 13:19:14 +02:00
Gina Häußge
81d523b73d
♻ Backport to_str -> to_bytes from devel
...
Add unit tests.
2019-02-08 14:39:07 +01:00
Gina Häußge
169275b052
Fix wrong position of parentheses, add unit tests
2018-10-19 16:39:18 +02:00
Gina Häußge
ac2354907a
Remove some trailing whitespace
2018-10-18 17:33:08 +02:00
Gina Häußge
7b5d2e3e0c
Allow whitespace after : in M114 responses
...
Closes #2839
2018-10-18 17:32:32 +02:00
Gina Häußge
5ff790048d
Fix unit tests
2018-09-26 15:52:10 +02:00
Gina Häußge
75c801d63f
Unit tests for is_lan_address
...
Also fixed a bug in subnet creation in the process.
2018-09-04 14:01:31 +02:00
Gina Häußge
62120affae
PMGR: Finalize extraction of is_os_compatible into octoprint.util.platform
2018-08-17 14:13:01 +02:00
Gina Häußge
6f224bd825
Workaround for typo & whitespace in Malyan M115 responses
...
NAME. instead of NAME:, whitespace between key and value component.
2018-04-11 11:12:56 +02:00
Gina Häußge
9f80aefcc9
thaw_frozendict should be fully recursive
...
So far it was only deep-diving into frozendicts, not dicts (which might
contain frozendicts).
In principle we probably should also dive into tuples and lists and
other containers, but in our current application we don't put
frozendicts into those so let's not overdo it.
2018-04-03 16:56:59 +02:00
Gina Häußge
f782cfe83f
Thaw the frozendict on printer.get_current_data
...
We don't want calling code to run into trouble because of that.
Fixes #2506
2018-03-22 12:58:52 +01:00
Gina Häußge
2abff3b589
Fix broken unit test
2018-03-06 15:05:25 +01:00
Gina Häußge
2db2532c2f
Fix unit tests broken by implementation of #2208
2018-02-28 17:07:53 +01:00
Gina Häußge
ec12bd7cd4
Introduce CaseInsensitiveSet & use for valid boolean trues
...
Follow up to #2385
2018-02-06 10:15:57 +01:00
Gina Häußge
ef6b39757b
Merge branch 'maintenance' of github.com:foosel/OctoPrint into maintenance
2017-12-08 16:22:19 +01:00
Gina Häußge
86934c8863
Support M114 response from RepRapFirmware
...
RRF uses format X:... Y:... Z:... E0:... E1:... instead of
X:... Y:... Z:... E:...
2017-12-06 16:03:19 +01:00
Gina Häußge
13eb5ec7ed
Merge pull request #2250 from kantlivelong/resettable_timer
...
Added ResettableTimer class
2017-12-06 11:42:45 +01:00
Shawn Bruce
6ce6160f3d
Added ResettableTimer class
2017-12-05 12:00:12 -05:00
Gina Häußge
06816fb8dc
Test: checksum missing => missing checksum
2017-12-04 16:04:38 +01:00
Gina Häußge
cc0a17f2ac
Unit tests for MachineCom._handle_errors
...
With various Marlin and Repetier error variants.
2017-12-04 15:56:31 +01:00
Gina Häußge
14bd0632c0
parse_requirements => Requirement.parse
...
Since we only ever handle one requirement here, the parse_requirements
generator (which btw needs a next m() is not the best choice.
Also extracted install command cleanup into class method and added tests
for that.
cc @markwal
2017-11-28 12:02:43 +01:00
Gina Häußge
b2d70de144
Environment detection & logging on startup
...
Incl. OctoPi version & RPi model through bundled plugin that only
gets loaded if OctoPi is detected.
2017-11-10 17:32:59 +01:00
Gina Häußge
69f9c523f9
Add utm tags to announcement links
2017-11-09 10:49:39 +01:00
Gina Häußge
abfcc6e5aa
Fix deletion of unrendered timelapses
...
If the filename contained a [] pair, the file would not match the glob
pattern used for selecting for deletion.
Backporting the glob.escape function from Python 3.4 and using it here
should fix that. We only use our own ported version if glob.escape
doesn't exist - that should reduce redundant code once we become Python
3 compatible.
2017-10-10 12:41:47 +02:00
Gina Häußge
cf053ddbed
Temperatures may in fact be negative
...
E.g. in case of a disconnected thermistor, or when it is really
really cold. Make sure our parsing doesn't get confuse by this and
thinks that
ok T:150.0/210.0 T0:-55.7/0 T1:150.0/210.0
is actually only T and T1 being reported by the firmware, causing
stuff to be wrongly canonicalized thanks to T/T1 being Smoothie's way
of reporting dual extruder setups.
Fixes #2007
2017-07-14 11:18:04 +02:00
Gina Häußge
f8d225a768
Support for parsing GCODE subcodes
...
Hook handlers will get any parsed subcode as optional keyword argument
"subcode".
2017-07-05 17:56:46 +02:00
Gina Häußge
7ab4d12548
Better error resilience against wrong user manager
...
Also improved get_class by using importlib instead of complicated
climbing through the whole module tree.
2017-06-29 15:07:17 +02:00
Gina Häußge
6a1b162e7b
Support for temperature autoreporting instead of polling
...
Now also detects capabilities reported by (extended) M115 output and
if AUTOREPORT_TEMP is available enables it with the configured
autoreport interval and disables active polling.
Implements #1679
2017-06-06 18:46:23 +02:00
Gina Häußge
559238ca3c
More solid parsing of line number from resends
...
Matches:
* Resend:23
* Resend:N23
* Resend:N:23
* rs 23
* rs N23
* rs N:23
* rs N23 Expected checksum 109
Based on issue reported via PR #300
2017-03-09 17:08:01 +01:00
Gina Häußge
fa16037e9a
Unit test for M115 response parsing
2017-03-09 16:39:16 +01:00
Gina Häußge
0d8fdfae26
Trust Tc over T when parsing temps from the firmware
2016-10-17 10:27:06 +02:00
Gina Häußge
aca3dfae49
Merge branch 'maintenance' into devel
...
# Conflicts:
# CHANGELOG.md
2016-09-23 14:35:31 +02:00
Gina Häußge
080a6e9ccd
Extend atomic_write to allow setting & persisting file permissions
2016-09-23 14:26:33 +02:00
Gina Häußge
cba742a94f
Fix some more left-overs of py2<->py3 PRs
...
Related to #1411 , #1414 and #1415
2016-07-15 12:46:53 +02:00
Gina Häußge
47b7acdfbc
Merge branch 'dev/python3A' of https://github.com/ByReaL/OctoPrint into pr/ByReaL/dev/python3A
...
Conflicts:
src/octoprint/plugins/virtual_printer/virtual.py
src/octoprint/printer/standard.py
2016-07-15 12:28:19 +02:00
MirceaDan
c33a9f9aa2
from __future__ import absolute_import, division, print_function
...
changed the behavior to import division and print to be consistent
across all app and similar with python 3.x
2016-07-15 00:16:58 -07:00
MirceaDan
149cc8c7c5
python 3 changes exceptions, queue and asesrtEqual
...
1) import Queue is now lower caps
2) exceptions
except KeyError as e:
3) assertEquals is deprecated but assertEqual does exactly same thing
2016-07-14 23:53:39 -07:00
Gina Häußge
5fb1c2d7a0
Merge branch 'fix/useIsHiddenPath' into devel
2015-11-20 10:12:33 +01:00
Gina Häußge
454f16a7c3
Fixed a broken unit test (pro tip: test new tests before committing...)
2015-11-20 10:12:15 +01:00
Gina Häußge
73d8ff9991
Merge branch 'fix/useIsHiddenPath' into devel
...
Conflicts:
tests/util/test_file_helpers.py
2015-11-20 10:07:46 +01:00
Gina Häußge
a731f748d9
Moved existing hidden file checks to utilize octoprint.util.is_hidden_path
2015-11-20 10:02:06 +01:00
Gina Häußge
1f90096a89
Merge branch 'fix/hiddenTemplatesListed' into devel
...
Conflicts:
src/octoprint/util/__init__.py
tests/util/test_file_helpers.py
2015-11-19 19:04:21 +01:00
Gina Häußge
83f66e133e
Do not include hidden files in listed gcode scripts
2015-11-19 18:58:56 +01:00
Gina Häußge
ab97abf13e
Some fixes and unit tests for octoprint.util.atomic_write, .bom_aware_open and .tempdir
...
(cherry picked from commit 4fcb853 )
2015-11-19 15:15:35 +01:00
Gina Häußge
4fcb853ef2
Some fixes and unit tests for octoprint.util.atomic_write, .bom_aware_open and .tempdir
2015-11-03 18:11:54 +01:00
Gina Häußge
d34790e74e
Unit tests for octoprint.util.RepeatedTimer
...
(cherry picked from commit 7362067 )
2015-10-20 12:07:31 +02:00
Gina Häußge
024cf88589
Unit tests for octoprint.util.CountedEvent
2015-08-28 17:14:58 +02:00
Gina Häußge
73620678c4
Unit tests for octoprint.util.RepeatedTimer
2015-08-28 16:56:14 +02:00
Gina Häußge
59993bfca4
Fixed & refactored temperature parsing
...
T-only lines were not properly parsed. Should now be fixed to
be associated to currently selected extruder. Also added unit
tests for the temperature parsing.
While at it also extracted regexes and added unit tests for command
parsing (gcode & parameters)
(cherry picked from commit f6a259f )
2015-08-24 14:55:42 +02:00