Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Dec 28, 2016
1 parent 9d4adc1 commit 585d9db
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/core/qgsmessagelog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ class QgsMessageLogConsole;

QgsMessageLog::QgsMessageLog()
: QObject()
{}
{
qRegisterMetaType< QgsMessageLog::MessageLevel >( "QgsMessageLog::MessageLevel" );
}

void QgsMessageLog::logMessage( const QString& message, const QString& tag, QgsMessageLog::MessageLevel level )
{
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsmessagelog.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
class CORE_EXPORT QgsMessageLog : public QObject
{
Q_OBJECT
Q_ENUMS( MessageLevel )

public:

Expand Down Expand Up @@ -62,7 +63,6 @@ class CORE_EXPORT QgsMessageLog : public QObject

};


/** \ingroup core
\brief Default implementation of message logging interface
Expand Down
4 changes: 3 additions & 1 deletion tests/src/python/test_qgscolorschemeregistry.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@

import qgis # NOQA

from qgis.testing import unittest
from qgis.testing import start_app, unittest
from qgis.core import QgsColorSchemeRegistry, QgsRecentColorScheme, QgsApplication

start_app()


class TestQgsColorSchemeRegistry(unittest.TestCase):

Expand Down

0 comments on commit 585d9db

Please sign in to comment.