Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am sromansky on github.
  • I am skroman (https://keybase.io/skroman) on keybase.
  • I have a public key ASBAydV-nM3y6nQjBN5bWAuFrzwuVFqfF-qZRn_8eITTaQo

To claim this, I am signing this object:

@SRomansky
SRomansky / gist:11524983a3fd1d1e0e41
Created December 26, 2014 06:28
TalkEditor time stamp translating delegate diff
diff --git a/src/freeseer/frontend/talkeditor/talkeditor.py b/src/freeseer/frontend/talkeditor/talkeditor.py
index c7228bb..99818e7 100644
--- a/src/freeseer/frontend/talkeditor/talkeditor.py
+++ b/src/freeseer/frontend/talkeditor/talkeditor.py
@@ -28,6 +28,7 @@ import logging
from PyQt4.QtCore import SIGNAL
from PyQt4.QtCore import QPersistentModelIndex
from PyQt4.QtCore import QStringList
+from PyQt4.QtCore import QString
from PyQt4.QtCore import Qt
INSERT INTO presentations(Title, Speaker, Description, Category, Event, Room, Date, StartTime, EndTime)
VALUES (test title 1, test speaker, test room, test event, Default, Default, , , )
@SRomansky
SRomansky / gist:1d9764a4fea6a79fcbd3
Created November 1, 2014 02:36
UnboundLocalError exception
freeseer/tests/framework/database/test_database.py:104:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <freeseer.framework.database.QtDBConnector object at 0x7f7d4c743110>, fname = ''
def export_talks_to_csv(self, fname):
fieldNames = ('Title',
'Speaker',
'Abstract',
'Category',
@SRomansky
SRomansky / gist:a0c4afd8c72a4bad40bc
Created October 27, 2014 23:11
Build test failures.
bug 1 in test_plugins line 117
| #
| # Setup Audio Pipeline
| #
| if audio:
| audioqueue = gst.element_factory_make("queue", "audioqueue")
| bin.add(audioqueue)
|
| audioconvert = gst.element_factory_make("audioconvert", "audioconvert")
@SRomansky
SRomansky / gist:7f7e7a937dd9618fb3c7
Created October 25, 2014 05:38
misunderstanding of mvc
def test_psyduck(db, presentation):
presentations_model_before = db.get_presentations_model()
assert presentations_model_before.rowCount() == 0
db.insert_presentation(presentation)
presentations_model_after = db.get_presentations_model()
assert presentations_model_after.rowCount() == 1 # Explosions, failures, such disappoint.
^ higher priority
_ lower priority
N not testing
Y yes test this
? Could test this, undecided based on time or importance
??? Where is the test that tests this file?
Name Stmts Miss Cover Ts?
-------------------------------------------------------------------------------
freeseer/__init__ 33 33 0% N
freeseer/__main__ 2 2 0% N
^ higher priority
_ lower priority
N not testing
Y yes test this
??? Where is the test that tests this file?
Name Stmts Miss Cover Ts?
-------------------------------------------------------------------------------
freeseer/__init__ 33 33 0% N
freeseer/__main__ 2 2 0% N
freeseer/framework/config/__init__ 1 1 0% N
tmpdir = local('/tmp/pytest-6/test_query_result_types0')
@pytest.fixture
def db(tmpdir):
profile_path = tmpdir.mkdtemp()
profile = Profile(profile_path, 'testing')
> return profile.get_database()
freeseer/tests/framework/test_db_pytest.py:41:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
@SRomansky
SRomansky / gist:c186fe2a5f4b644a44e6
Created October 1, 2014 03:12
py.test errors 2014-09-30
==================================== ERRORS ====================================
______ ERROR collecting freeseer/tests/frontend/controller/test_server.py ______
freeseer/tests/frontend/controller/test_server.py:35: in <module>
from freeseer.frontend.controller import server
freeseer/frontend/controller/server.py:31: in <module>
from flask import current_app
E ImportError: No module named flask
_____ ERROR collecting freeseer/tests/frontend/controller/test_validate.py _____
freeseer/tests/frontend/controller/test_validate.py:27: in <module>
from freeseer.frontend.controller import validate