Skip to content

Instantly share code, notes, and snippets.

View kelvinndmo's full-sized avatar
🏠
Working from home

Novak kelvinndmo

🏠
Working from home
View GitHub Profile
import os
from flask import Flask, request, jsonify
from flask_sqlalchemy import SQLAlchemy
from flask_marshmallow import Marshmallow
# init app
app = Flask(__name__)
basedir = os.path.abspath(os.path.dirname(__file__))
from django.test import TestCase
from sendy.models import Parcel
# Create your tests here.
class TestParcel(TestCase):
def setUp(self):
self.parcel = Parcels(sender="Kelvin onkundi", email="[email protected]", Recipient="Swaleh", recepient_contact="07999999")
self.parcel.save()
def test_create_parcel(self):