Skip to content
Snippets Groups Projects
test.ipynb 1.39 KiB
Newer Older
  • Learn to ignore specific revisions
  • {
     "cells": [
      {
       "cell_type": "code",
       "execution_count": 25,
       "metadata": {},
       "outputs": [],
       "source": [
        "from memory_db import InMemoryDatabase\n",
        "from utils import populate_test_results_table\n",
        "import csv\n",
        "import constants\n",
        "import datetime"
       ]
      },
      {
       "cell_type": "code",
       "execution_count": 26,
       "metadata": {},
       "outputs": [],
       "source": [
        "db = InMemoryDatabase()"
       ]
      },
      {
       "cell_type": "code",
       "execution_count": 27,
       "metadata": {},
       "outputs": [],
       "source": [
        "populate_test_results_table(db, 'history.csv')"
       ]
      },
      {
       "cell_type": "code",
       "execution_count": 28,
       "metadata": {},
       "outputs": [],
       "source": [
        "db.persist_db()"
       ]
      },
      {
       "cell_type": "code",
       "execution_count": 29,
       "metadata": {},
       "outputs": [],
       "source": [
        "db.close()"
       ]
      },
      {
       "cell_type": "code",
       "execution_count": null,
       "metadata": {},
       "outputs": [],
       "source": []
      }
     ],
     "metadata": {
      "kernelspec": {
       "display_name": "venv",
       "language": "python",
       "name": "python3"
      },
      "language_info": {
       "codemirror_mode": {
        "name": "ipython",
        "version": 3
       },
       "file_extension": ".py",
       "mimetype": "text/x-python",
       "name": "python",
       "nbconvert_exporter": "python",
       "pygments_lexer": "ipython3",
       "version": "3.10.12"
      }
     },
     "nbformat": 4,
     "nbformat_minor": 2
    }