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 React from 'react'; | |
import { Button, Modal } from 'semantic-ui-react'; | |
import PropTypes from 'prop-types'; | |
const DeleteUser = ({ closeModal, open, handleDelete }) => { | |
return ( | |
<div> | |
<Modal size="mini" open={open} onClose={closeModal} className="show"> | |
<Modal.Header>Delete user account</Modal.Header> | |
<Modal.Content> |
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 React, { Component } from 'react'; | |
import { connect } from 'react-redux'; | |
import { Form, Message } from 'semantic-ui-react'; | |
import Select from 'react-select'; | |
import makeAnimated from 'react-select/lib/animated'; | |
import PropTypes from 'prop-types'; | |
import mapGroupOptions from '../../utils/mapGroups'; | |
import { fetchingGroups } from '../../store/actions/groups'; | |
import { startRegistration } from '../../store/sagas/users'; |
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 secrets | |
import string | |
from pyperclip import copy | |
from validators import validators | |
secure_random = secrets.SystemRandom() | |
letters = string.ascii_letters | |
digits = string.digits | |
special = string.punctuation | |
validator = [ |
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 rest_framework import status | |
from rest_framework.test import APIClient | |
class LoginTestCase(TestCase): | |
def setUp(): | |
self.client = APIClient() | |
self.user = { | |
"username": "andela", |
NewerOlder