create db with sellers and articles
This commit is contained in:
parent
79d96c22bc
commit
9705426c31
4 changed files with 51 additions and 8 deletions
|
@ -2,10 +2,15 @@
|
|||
|
||||
#include "../src/core/database.h"
|
||||
|
||||
#include <filesystem>
|
||||
|
||||
#include <boost/test/included/unit_test.hpp>
|
||||
|
||||
//using namespace boost::unit_test;
|
||||
|
||||
BOOST_AUTO_TEST_CASE( create_database ) {
|
||||
Database db("test.db");
|
||||
std::filesystem::path testPath = std::filesystem::temp_directory_path() / "test.db";
|
||||
Database db(testPath.c_str());
|
||||
db.init();
|
||||
std::filesystem::remove(testPath);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue