blob: c285c1e7389992906f4af6388846bcde78dfddfa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#define BOOST_TEST_MODULE TestBugs
#include <boost/test/unit_test.hpp>
#include "mockDefs.h"
BOOST_GLOBAL_FIXTURE( Maintenance );
BOOST_FIXTURE_TEST_SUITE(tp, TestClient)
BOOST_AUTO_TEST_CASE( importBugHtml )
{
const int64_t expectedBugCount = 34;
m->refreshBugs();
auto db = DB::ConnectionPtr(DB::MockDatabase::openConnectionTo("GentooBrowseAPI"));
SQL_REQUIRE_EQUAL("SELECT COUNT(*) FROM gentoobrowse.bugs", int64_t, expectedBugCount);
db->execute("COPY gentoobrowse.bugs TO '/tmp/bugs.tsv'");
}
BOOST_AUTO_TEST_SUITE_END();
|