This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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__)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): |
NewerOlder