mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Use proper QTest initialization method in TestGitStorage
Method originally called testSetup is more a precondition to test execution rather than an actual test. QTest recommends to use initTestCase for that purpose. Signed-off-by: Jeremie Guichard <djebrest@gmail.com>
This commit is contained in:
parent
7329629b6e
commit
16a321d43b
2 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@
|
|||
// this is a local helper function in git-access.c
|
||||
extern "C" char *get_local_dir(const char *remote, const char *branch);
|
||||
|
||||
void TestGitStorage::testSetup()
|
||||
void TestGitStorage::initTestCase()
|
||||
{
|
||||
// first, setup the preferences an proxy information
|
||||
copy_prefs(&default_prefs, &prefs);
|
||||
|
|
|
@ -7,7 +7,7 @@ class TestGitStorage : public QObject
|
|||
{
|
||||
Q_OBJECT
|
||||
private slots:
|
||||
void testSetup();
|
||||
void initTestCase();
|
||||
void testGitStorageLocal_data();
|
||||
void testGitStorageLocal();
|
||||
void testGitStorageCloud();
|
||||
|
|
Loading…
Add table
Reference in a new issue