Skip to content

Commit

Permalink
tests passing
Browse files Browse the repository at this point in the history
  • Loading branch information
abraryaser02 committed May 10, 2024
1 parent cc71d8e commit b78d451
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 24 deletions.
2 changes: 1 addition & 1 deletion load_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

echo 'loading data'

time python3 load_data.py --db=postgresql://postgres:postgres@localhost:5435/backend_dev --user_rows=1000 --event_rows=1000
time python3 load_data.py --db=postgresql://postgres:postgres@localhost:5435/backend_dev --user_rows=1000000 --event_rows=100000

echo 'finished loading'
14 changes: 0 additions & 14 deletions services/backend/tests/test_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,6 @@ def teardown_function():
connection.execute(text("DELETE FROM events"))
connection.execute(text("DELETE FROM user_to_events"))

def test_create_user(client):
response = client.post('/create_user', json={
'email': '[email protected]',
'password': 'newpassword123'
})
assert response.status_code == 201
data = response.get_json()
assert data['message'] == 'User created successfully'

def test_create_event(client):
"""Test the create_event endpoint."""
sample_data = {
Expand Down Expand Up @@ -62,11 +53,6 @@ def test_login(client):
data = response.get_json()
assert data['success'] == True


def test_get_users(client):
response = client.get('/all_users')
assert response.status_code == 200

def test_logout(client):
response = client.post('/logout')
assert response.status_code == 200
Expand Down
6 changes: 0 additions & 6 deletions services/client/my-app/src/App.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react';
import { Route, BrowserRouter as Router, Routes } from 'react-router-dom';
import AboutPage from './AboutPage';
import CalendarPage from './CalendarPage';
import EventDetailPage from './EventDetail';
import EventPage from './EventPage';
Expand Down Expand Up @@ -35,11 +34,6 @@ function App() {
<MapPage />
</ProtectedRoute>
} />
<Route path="/about" element={
<ProtectedRoute>
<AboutPage />
</ProtectedRoute>
} />
<Route path="/favorites" element={
<ProtectedRoute>
<UserFav />
Expand Down
1 change: 0 additions & 1 deletion services/client/my-app/src/EventPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,6 @@ function updateFavoritedEvents(result, eventId) {
{/* Navigation links */}
<li><Link to="/events">Events</Link></li>
<li><Link to="/map">Map</Link></li>
<li><Link to="/about">People</Link></li>
<li><Link to="/favorites">Favorites</Link></li>
<li><button type= "event-button" button onClick={toggleCreateEventPopup}>Create Event</button></li>
</ul>
Expand Down
1 change: 0 additions & 1 deletion services/client/my-app/src/MapPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ function MapPage() {
<ul>
<li><Link to="/events">Events</Link></li>
<li><Link to="/map">Map</Link></li>
<li><Link to="/about">Friends</Link></li>
<li><Link to="/favorites">Favorites</Link></li>
</ul>
</div>
Expand Down
1 change: 0 additions & 1 deletion services/client/my-app/src/UserFav.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ function UserFav() {
{/* Navigation links */}
<li><Link to="/events">Events</Link></li>
<li><Link to="/map">Map</Link></li>
<li><Link to="/about">People</Link></li>
<li><Link to="/favorites">Favorites</Link></li>
</ul>
</div>
Expand Down

0 comments on commit b78d451

Please sign in to comment.